Solved

Rdo Question

Posted on 2008-10-09
2
163 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

752 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