ADO CompareBookmarks Method

## ADO Tutorial

ADO HOME ADO Intro ADO Connect ADO Recordset ADO Display ADO Query ADO Sort ADO Add ADO Update ADO Delete ADO Demo ADO Speed Up

## ADO Objects

ADO Command ADO Connection ADO Error ADO Field ADO Parameter ADO Property ADO Record ADO Recordset ADO Stream ADO DataTypes
ADO Summary

## ADO Examples

ADO Examples

# ADO CompareBookmarks Method

Complete Recordset Object Reference

The CompareBookmarks method compares two bookmarks. This method returns a CompareEnum value that indicates the bookmark's relative row positions.

Note: The two bookmarks must be within the same Recordset, or within a Recordset and its clone.

Note: You can use this method only if the provider support bookmarks.

### 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

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE