Exit do at Bookmark

speakers_86

Registered User.
Local time
Today, 09:47
Joined
May 17, 2007
Messages
1,919
How can I exit a Do Until when the recordset reaches the bookmark? I've tried stuff like this

Code:
Do Until varbookmark=rs.bookmark

But it gives a type mismatch???
 
Could do with a bit more info for this.

If it's a type mismatch that implies that Access isn't recognising your variable as a bookmark. Do you have a line before your "Do":

Dim varbookmark As Bookmark

...and also a line setting varbookmark to a valid bookmark?
 

Users who are viewing this thread

Back
Top Bottom