Name

Recordset.WillMove Event — (Versions 2.0, 2.1, 2.5, 2.6)

Synopsis

WillMove(ByVal adReason As ADODB.EventReasonEnum, _
         adStatus As ADODB.EventStatusEnum, _
         ByVal pRecordset As 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 adReason parameter are: adRsnMoveFirst, adRsnMoveLast, adRsnMoveNext, adRsnMovePrevious, adRsnMove, adRsnRequery.

adStatus

Holds an EventStatusEnum value indicating the status of the current operation. The adStatus parameter is set to adStatusOK if the operation causing this event was successful. If the adStatus parameter is set to adStatusCantDeny, the event cannot request that the operation be canceled. If the adStatus parameter is set to adStatusUnwantedEvent, this event will not be called again. If the adStatus parameter is set to adStatusCancel, 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, ...

Get ADO: ActiveX Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.