<< Click to Display Table of Contents >>

Navigation:  Ado Events > AdoRecordSetEvents Class >


Previous pageReturn to chapter overviewNext page


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



METHOD WillMove ( lReason, lStatus,  oRecordSet )  CLASS AdoRecordSetEvents



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




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