AdStatus As ADODB. EventStatusEnum. ByVal pRecordset As the ADODB library you)
Please explain in detail the inside of the parentheses each content
CodePudding user response:
Select the MoveComplete press F1, see the help,CodePudding user response:
WillMove and MoveComplete method (RecordsetEvent)WillMove method in hang operation before the changes in the current location you call, MoveComplete method is called after you change the current position,
Syntax
WillMove adReason adStatus, pRecordset
MoveComplete adReason, pError, adStatus pRecordset
Parameter
AdReason EventReasonEnum value, specify the reason of events, its value can be adRsnMoveFirst adRsnMoveLast, adRsnMoveNext, adRsnMovePrevious, adRsnMove or adRsnRequery,
PError Error object, what happens when adStatus adStatusErrorsOccurred value Error, otherwise will not set it,
AdStatus EventStatusEnum status value,
When invoking WillMove, if trigger event operation is successful, then this parameter is set to adStatusOK, if this method cannot request cancel pending operations, is set to adStatusCantDeny,
When calling MoveComplete, if trigger event operation is successful, then this parameter is set to adStatusOK, if the operation failure, is set to adStatusErrorsOccurred,
Before WillMove returns, set this parameter to adStatusCancel can request cancel pending operations, before MoveComplete returns, set this parameter to adStatusUnwantedEvent can avoid subsequent notification,
PRecordset you object, the incident to the Recordset,
Description
WillMove or MoveComplete events can occur due to you of the following operations: Open, Move, MoveFirst, MoveLast, MoveNext, MovePrevious, Bookmark, AddNew, Delete, Requery and Resync, these events may occur due to the following attributes: Filter, Index, AbsolutePage and AbsolutePosition, if the child you make you events are connected and the parent you are mobile, these events will occur,
CodePudding user response:
Unknown Bai Dou in F1