Solved

ado data control

Posted on 2003-11-04
2
139 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
Comment Utility
this should be what you need:

TheCurrentRecordNumber& = Adodc1.Recordset.AbsolutePosition
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 50 total points
Comment Utility
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

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

Title # Comments Views Activity
VBA Check for Character 9 69
Problem to the message 13 62
vba find the last empty column 10 81
Modifying Conditional Format from VBA code 3 29
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…
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…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

763 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

9 Experts available now in Live!

Get 1:1 Help Now