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

Get ADO: ActiveX Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.