|
-
Apr 30th, 2001, 08:40 AM
#1
Thread Starter
Frenzied Member
Moving to the last record in a recordset.
I have the following code in my app :
*************************************************************
Set db = New Connection
db.CursorLocation = adUseClient
' db.open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=G:\Developers\SCR Database\SCRsystem.mdb;"
db.open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=C:\SCR System\SCRsystem.mdb;"
' Open employee table.
Set adoprimaryrs = New Recordset
adoprimaryrs.open "select * from [SCR List]", db, adOpenStatic, adLockOptimistic
adoprimaryrs.MoveLast
*************************************************************
For some reason, the last record in this collection is not the last record in the database (if I check it manually).
Anybody know why this would be so ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|