Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Record numbers in database for Vb6.0

Status
Not open for further replies.

Stott40

Programmer
Nov 5, 2000
4
US
I need to know how to display the current record number of the total records in a label for a database application.
my code looks like this:
Private Sub Form_Load ()
lblRecDisplay.Caption = " Record " & _
CStr(intCurrentRecNo) & " of " & CStr(intLastRecNo)
what's wrong with this?

 
If you're using ADO use
lblRecDisplay.Caption = " Record " & _
rsYourRecordset.AbsolutePosition & " of " & rsYourRecordset.RecordCount


David Paulson


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top