ADO CancelBatch 메서드


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

CancelBatch 메서드는 일괄 업데이트를 취소합니다. 이 메서드를 호출할 때 Recordset은 일괄 업데이트 모드에 있어야 합니다.

이 속성을 호출한 후 현재 레코드가 무엇인지 모르기 때문에 알려진 레코드로 이동해야 합니다. 예를 들어, 이 메서드를 호출한 후 MoveFirst 또는 MoveLast 메서드를 호출할 수 있습니다.

이 방법이 실패하면 공급자는 실행을 중지하지 않지만 오류 컬렉션에 경고를 보냅니다. 

통사론

objRecordset.CancelBatch affectrec

Parameter Description
affectrec Optional. An AffectEnum value that indicates which records this method will affect

영향 열거형 값

Constant Value Description
adAffectCurrent 1 Affects only the current record
adAffectGroup 2 Affects only records that satisfy the Filter setting (Filter must be set to a FilterGroupEnum value or an array of Bookmarks)
adAffectAll 3 Affects all records if there is no Filter. Affects only visible records in the current chapter if Filter is set to a string criteria. Affect all rows of the Recordset if Filter is set to a FilterGroupEnum value or an array of Bookmarks
adAffectAllChapters 4 Affects all records in all child Recordset, including those hidden by a currently applied filter

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