ADO UpdateBatch 메서드


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

UpdateBatch 메서드는 Recordset의 모든 변경 사항을 데이터베이스에 저장하는 데 사용됩니다. 이 메서드는 일괄 업데이트 모드에서 레코드 집합에 대해 작업할 때 사용됩니다.

저장 작업이 실패하면 런타임 오류가 발생하고 오류는 Errors 컬렉션에 저장됩니다.

팁: CancelBatch 메서드는 모든 일괄 업데이트를 취소합니다.

참고: 모든 Recordset 개체가 일괄 업데이트를 지원하는 것은 아닙니다.

통사론

bool=objRecordset.UpdateBatch affectrecords

Parameter Description
affectrecords Optional. An AffectEnum value that specifies which records this method will affect.

Note: The value adAffectGroup will generate an error if there are no visible records in the Recordset


영향 열거형 값

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

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