AdoRecordSetEvents:WillMove()

<< Click to Display Table of Contents >>

Navigation:  Ado Events > AdoRecordSetEvents Class >

AdoRecordSetEvents:WillMove()

Previous pageReturn to chapter overviewNext page

Purpose

The WillMove event is called before a pending operation changes the current position in the Recordset.

 

Prototype

METHOD WillMove ( lReason, lStatus,  oRecordSet )  CLASS AdoRecordSetEvents

 

Argument(s)

lReason        An EventReasonEnum value that specifies the reason for this event.

lStatus        An AdoEventStatusEnum status value. Before WillMove returns, set this parameter to adStatusCancel to request cancellation of the pending operation.

oRecordSet        A Recordset object. The Recordset for which this event occurred

 

 

Description

A WillMove event may occur due to the following Recordset operations: Open, Move, MoveFirst, MoveLast, MoveNext, MovePrevious, AddNew, and Requery. These events may occur because of the following properties: Filter, Index, Bookmark, AbsolutePage, and AbsolutePosition. These events also occur if a child Recordset has Recordset events connected and the parent Recordset is moved

 

See Also

AdoRecordSetEvents, AdoEventReasonEnum, AdoEventStatusEnum