ADO WillMoveMoveComplete 이벤트


❮ 완전한 레코드세트 개체 참조

WillMove 이벤트

작업이 Recordset의 현재 위치를 변경하기 전에 WillMove 이벤트가 트리거됩니다.

참고: 이 이벤트가 반환되기 전에 status 매개변수를 adStatusCancel로 설정하여 이 이벤트를 일으킨 작업을 취소하거나 adStatusUnwantedEvent로 설정하여 후속 알림을 방지합니다.

MoveComplete 이벤트

MoveComplete 이벤트는 Recordset의 현재 위치가 변경된 후 트리거됩니다.

참고: 이 이벤트가 반환되기 전에 상태 매개변수를 adStatusUnwantedEvent로 설정하여 후속 알림을 방지하세요. 

참고: WillMove 이벤트 또는 MoveComplete 이벤트는 Open, Move, MoveFirst, MoveLast, MoveNext, MovePrevious, AddNew 및 Requery와 같은 Recordset 메서드 중 하나를 호출할 때 발생할 수 있습니다. 이러한 이벤트는 Filter, Index, Bookmark, AbsolutePage 및 AbsolutePosition 속성 때문에 발생할 수도 있습니다.

통사론

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

EventReasonEnum 값

Constant Value Description
adRsnRequery 7 An operation requeried the Recordset
adRsnMove 10 An operation moved the record pointer within the Recordset
adRsnMoveFirst 12 An operation moved the record pointer to the first record in the Recordset
adRsnMoveNext 13 An operation moved the record pointer to the next record in the Recordset
adRsnMovePrevious 14 An operation moved the record pointer to the previous record in the Recordset
adRsnMoveLast 15 An operation moved the record pointer to the last record in the Recordset

EventStatusEnum 값

Constant Value Description
adStatusOK 1 The operation that caused the event was successful
adStatusErrorsOccurred 2 The operation that caused the event failed
adStatusCantDeny 3 The operation that caused the event cannot be cancelled
adStatusCancel 4 The operation that caused the event is cancelled
adStatusUnwantedEvent 5 Prevents subsequent notifications before the event method has finished executing

❮ 완전한 레코드세트 개체 참조