Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Rdo Question

Posted on 2008-10-09
2
Medium Priority
?
170 Views
Last Modified: 2013-11-25
Experts,

How can I move the record in an RDO Recordset object based on a given criterion?  For example, say my recordset has four records with a field called "number" with values "one", "two", "three", and "four" respectively.  I know I can say

rsMyRecordset.Move(2)

which will send it to the second record.  But what if I wanted to do that based on what was in the "number" field.  In other words, I'd say move(3) if the value in "number" is "three".  

Can this be done?
0
Comment
Question by:NigelRocks
  • 2
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 22685565
you mean:
rsMyRecordset.Move(rsMyRecordset.Fields("number").Value)

Open in new window

0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22685568
now, I assume that:
"number" with values "one", "two", "three", and "four"
actually mean:
"number" with values "1", "2", "3", and "4"

otherwise, you will need to "translate" the number words into the numbers first.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question