The WillMove event is triggered before an operation changes the current
position in the Recordset.
Note: Before this event returns, set the status parameter to adStatusCancel to
cancel the operation that caused this event or set it to adStatusUnwantedEvent to prevent subsequent notications.
The MoveComplete Event
The MoveComplete event is triggered after the current position in the Recordset
has changed.
Note: Before this event returns, set the status parameter to adStatusUnwantedEvent to prevent subsequent notifications.
Note: The WillMove event or MoveComplete event may occur when calling
one of the following Recordset method: Open, Move, MoveFirst, MoveLast, MoveNext, MovePrevious, AddNew, and Requery. These events may
also occur because of the following properties: Filter, Index, Bookmark, AbsolutePage, and AbsolutePosition.
Syntax
WillMove reason,status,objRs
MoveComplete reason,objErr,status,objRs
Parameter
Description
reason
An EventReasonEnum value that specifies the
reason for this event
status
An EventStatusEnum value
that indicates the status of the execution of the event
objErr
The name of an Error object that describes the error if
status is set to adStatusErrorsOccurred, otherwise it is not set
objRs
The name of the Recordset object that triggered this
event
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.