Name
Recordset.CompareBookmarks Method — (Versions 2.0, 2.1, 2.5, 2.6)
Synopsis
result = recordset.CopmareBookmarks (Bookmark1, Bookmark2)The CompareBookmarks method determines the position of two bookmarks in a recordset relative to one another.
Arguments
-
Bookmark1(Variant) A bookmark of the first row to be compared.
-
Bookmark2(Variant) A bookmark of the second row to be compared.
Returns
CompareEnum
Description
The CompareBookmark method returns a value that indicates which of the two passed bookmarks come first in ordinal position. Bookmarks are unique to rows within the same Recordset and clones of a Recordset object. Comparing bookmarks from two different Recordsets (not created by cloning another) will not return reliable results.
Obtain the current row’s bookmark by reading the Bookmark property.
See Also
CompareEnum Enumeration, Recordset.Bookmark Property, Recordset.Clone Method
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access