Name
Recordset.WillMove Event — (Versions 2.0, 2.1, 2.5, 2.6)
Synopsis
WillMove(ByValadReasonAs ADODB.EventReasonEnum, _adStatusAs ADODB.EventStatusEnum, _ ByValpRecordsetAs ADODB.Recordset)
The WillMove event is called before an operation changes the position of the record pointer within the Recordset object.
Arguments
-
adReason(EventReasonEnum) Indicates the reason for this event. Values for the
adReasonparameter are:adRsnMoveFirst,adRsnMoveLast,adRsnMoveNext,adRsnMovePrevious,adRsnMove,adRsnRequery.
-
adStatus Holds an EventStatusEnum value indicating the status of the current operation. The
adStatusparameter is set toadStatusOKif the operation causing this event was successful. If theadStatusparameter is set toadStatusCantDeny, the event cannot request that the operation be canceled. If theadStatusparameter is set toadStatusUnwantedEvent, this event will not be called again. If theadStatusparameter is set toadStatusCancel, a cancellation request will be made for this operation.
-
pRecordset Represents the Recordset object that fired this event.
See Also
EventReasonEnum Enumeration, EventStatusEnum Enumeration, Recordset.AbsolutePage Property, Recordset.AbsolutePosition Property, Recordset.AddNew Method, Recordset.Bookmark Method, Recordset.Filter Property, Recordset.Index Property, Recordset.Move Method, Recordset.MoveFirst Method, Recordset.MoveLast Method, Recordset.MoveNext Method, Recordset.MovePrevious Method, Recordset.Open Method, Recordset.Requery Method, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access