ADO WillChangeRecordset 및 RecordsetChangeComplete 이벤트
❮ 완전한 레코드세트 개체 참조
WillChangeRecordset 이벤트
작업이 Recordset을 변경하기 전에 WillChangeRecordset 이벤트가 트리거됩니다.
참고: 이 이벤트가 반환되기 전에 status 매개변수를 adStatusCancel로 설정하여 이 이벤트를 일으킨 작업을 취소하거나 adStatusUnwantedEvent로 설정하여 후속 알림을 방지합니다.
RecordsetChangeComplete 이벤트
RecordsetChangeComplete 이벤트는 Recordset이 변경된 후 트리거됩니다.
참고: 이 이벤트가 반환되기 전에 상태 매개변수를 adStatusUnwantedEvent로 설정하여 후속 알림을 방지하세요.
참고: WillChangeRecordset 및 RecordsetChangeComplete 이벤트는 Recordset 개체의 Requery 메서드 또는 Open 메서드를 호출할 때 발생할 수 있습니다.
통사론
WillChangeRecord reason,status,objRs
RecordsetChangeComplete 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 |
adRsnResynch | 8 | An operation resynchronized the Recordset with the database |
adRsnClose | 9 | An operation closed 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 |
❮ 완전한 레코드세트 개체 참조