Re: I can't get the record number in ADO recordset [RESOLVED]
Originally Posted by Jethro Tull
I've tried with .AbsolutePosition but it gets -2 or something like this
Can somebody help me, please?
Thanks in advance.
The AbsolutePosition is not correct if u are using a Server Side cursor.
Before opening the recordset, make it a Client side cursor
VB Code:
rs.CursorLocation = adUseClient
Then the absolute position should return correct value
Pradeep, Microsoft MVP (Visual Basic) Please appreciate posts that have helped you by clicking icon on the left of the post.
"A problem well stated is a problem half solved." — Charles F. Kettering