Solved

moving through records

Posted on 2006-07-12
6
204 Views
Last Modified: 2010-04-30
ok what settings need to take place to just be able to move to next records using ado on the client side.It seems like the only way I can do it is to delete the current record and move to the next record but this I do not want to do I want to be able to move to the next record without deleting.
0
Comment
Question by:thenone
[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
  • 4
  • 2
6 Comments
 
LVL 4

Expert Comment

by:jomacinc
ID: 17096808
Dim oADO As ADODB.Recordset

' << Open Recordset Here >>

Do While Not oADO.EOF
  ' << do whatever you need with this record >>
  Call oADO.MoveNext
Loop
0
 
LVL 4

Expert Comment

by:jomacinc
ID: 17096816
The point there is the "MoveNext" method.
0
 
LVL 8

Author Comment

by:thenone
ID: 17099247
I do that and it doesn't movenext exactly what you have written.
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 4

Accepted Solution

by:
jomacinc earned 500 total points
ID: 17099407
How are you opening the recordset then?
Sounds like a curser problem, can you post you code for just that?
0
 
LVL 8

Author Comment

by:thenone
ID: 17101223
no its something else that is going on and I figured it out.Since I answered my own question can you answer another question.If I am showing all records in a set in maybe a label and I am not deleting them to count down.Ho can I show how many records that I have left to move thru.
0
 
LVL 4

Expert Comment

by:jomacinc
ID: 17104992
Use the "AbsolutePosition" property

[Number of Records Left] = oADO.RecordCount - oADO.AbsolutePosition
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…
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…
Suggested Courses
Course of the Month8 days, 8 hours left to enroll

617 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