ADO CompareBookmarks Method

The CompareBookmarks method compares two bookmarks. This method returns a CompareEnumvaluethat indicates the bookmark's relative row positions."

Syntax

result=objRecordset.CompareBookmarks(mark1,mark2)
Parameter Description
mark1 The bookmark of the first row
mark2 The bookmark of the second row

CompareEnum Values

Constant Value Description
adCompareLessThan 0 The first bookmark is before the second
adCompareEqual 1 The bookmarks are equal
adCompareGreaterThan 2 The first bookmark is after the second
adCompareNotEqual 3 The bookmarks are not equal
adCompareNotComparable 4 The bookmarks cannot be compared

❮ Complete Recordset Object Reference