Solved

ado data control

Posted on 2003-11-04
2
143 Views
Last Modified: 2010-05-03
i would like to keep track of what record number i am viewing when i scroll through my ADO data control. So, how do i display the record number in my ADO dc's Caption. I have the adodc connected to an Access table.
0
Comment
Question by:joyful88
2 Comments
 
LVL 3

Expert Comment

by:NBrownoh
ID: 9683279
this should be what you need:

TheCurrentRecordNumber& = Adodc1.Recordset.AbsolutePosition
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 50 total points
ID: 9685345
Put your code in the MoveComplete event:

Private Sub Adodc1_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)

    Adodc1.Caption = Adodc1.Recordset.AbsolutePosition

End Sub
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

828 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