Name

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

Synopsis

MoveComplete(ByVal adReason As ADODB.EventReasonEnum, _
             ByVal pError As ADODB.Error, _
             adStatus As ADODB.EventStatusEnum, _
             ByVal pRecordset As ADODB.Recordset)

The MoveComplete event is called after an operation changes the position of the record pointer within the Recordset object.

Arguments

adReason (EventReasonEnum)

Indicates the reason for this event. Proper values for the adReason parameter are: adRsnMoveFirst, adRsnMoveLast, adRsnMoveNext, adRsnMovePrevious, adRsnMove, and adRsnRequery.

pError (Error)

Contains details about an error that occurred if the adStatus parameter is set to adStatusErrorsOccurred.

adStatus (EventStatusEnum)

Indicates the status of the current operation. If the adStatus parameter is set to adStatusOK, the operation was successful. If the adStatus parameter is set to adStatusErrorsOccurred, the operation failed, and the pError object contains the details regarding the error. If the adStatus parameter is set to adStatusCancel, the operation has been canceled before completion by the application. If the adStatus parameter is set to adStatusUnwantedEvent, this event will not be called again.

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, ...

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.