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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to determine of recordset is on the first record 3

Status
Not open for further replies.

JacobTechy

Programmer
Joined
Apr 14, 2005
Messages
181
Location
US

I am using adodc in vb6sp6 and I would like to know if the recordset is on the first record of the database. How would the code be for this.


 
Assuming you are not using a forward-only cursor you can force to the first record:
rs.MoveFirst

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Essex Steam UK for steam enthusiasts
 
You can also look into the AbsolutePosition property of the recordset. AbsolutePosition is not supported for all recordset or cursor types however.
 
what I want to do is:
if recordset is on first record then
???
else
?????
endif
 
if recordset.BOF then
...
else
...
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top