Solved

Rdo Question

Posted on 2008-10-09
2
157 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 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
Comment Utility
you mean:
rsMyRecordset.Move(rsMyRecordset.Fields("number").Value)

Open in new window

0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now