W3Schools
home HOME Tutorials | References | Examples | Forum | About
Search W3Schools :

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

Examples
ADO Examples

Exam
ADO Exam

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

W3Schools Tutorials
W3Schools Forum

Helping W3Schools

ADO CompareBookmarks Method


Recordset Object Reference 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


Recordset Object Reference Complete Recordset Object Reference


Learn XML with Stylus Studio XML Editor – Free Download

Stylus Studio provides tools for editing and debugging XML, XSLT, XML Schema, DTD, XQuery, Web Services,and more!

Using Stylus Studio XML Tools You Can:

See why millions use Stylus Studio as their preferred XML tool. Download a FREE TRIAL or watch an online VIDEO DEMO today!



Jump to: Top of Page or HOME or Printer Friendly Printer friendly page

W3Schools provides material for training only. We do not warrant the correctness of its contents. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 1999-2008 by Refsnes Data. All Rights Reserved.

Validate Validate W3C-WAI level A conformance icon W3Schools was converted to XHTML in December 1999