Does it support bookmark : Recordset Bookmark « Access « VBA / Excel / Access / Word






Does it support bookmark

 
Sub BookmarkSupport()
   Dim rst As ADODB.Recordset
   Dim varMyBkmrk() As Variant
   Dim strConn As String

   strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & CurrentProject.Path & "\mydb.mdb"

   Set rst = New ADODB.Recordset
   rst.Open "Customers", strConn, adOpenKeyset

   If Not rst.Supports(adBookmark) Then
      MsgBox "This recordset does not support bookmarks!"
      Exit Sub
   End If

   rst.Close
   Set rst = Nothing
End Sub

 








Related examples in the same category

1.Marking Records with a Bookmark
2.Save Bookmark to an array
3.Using Bookmarks to Filter Records
4.declares a Variant variable named myBookmark and then assigns to it a bookmark representing the current record in an ADO recordset: