PreviousOLE DB Provider Guide ( revision 1) Next

Using Bookmarks

Show this topic in Library frames

Bookmarks are used in ADO the same as ordinary bookmarks are used in books, to be able to find that place again later. This is especially useful when searching through a database or when using multiple tables. Use a Variant variable to store the bookmark.

rs.Open "Course", "Provider=PervasiveOLEDB;Data 
Source=Demodata", adOpenDynamic, adLockBatchOptimistic, 
adCmdTable 
'  navigate to the place you want to bookmark  
SaveMyPlace = rs.Bookmark 
'  do some other things, then find your place again 
rs.Bookmark = SaveMyPlace 
rs.Close 

Tip
See Searching for Records for information on using the Find method.

Chapter contents
Publication contents

Prev topic: Using ADO Objects
Next topic: Using Events