Solved

Rdo Question

Posted on 2008-10-09
2
161 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 500 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

856 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