ADO 삭제 방법


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

Delete 메서드는 현재 레코드 또는 레코드 그룹을 삭제하는 데 사용됩니다. 레코드를 삭제한 후 삭제된 레코드는 다른 레코드로 이동할 때까지 현재 상태로 유지됩니다.

참고: 일괄 업데이트 모드에 있는 경우 UpdateBatch 메서드를 호출하면 삭제가 발생합니다.

참고: 이 방법을 사용하려면 Recordset 개체가 레코드 삭제를 허용하는지 확인하십시오.

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

통사론

objRecordset.Delete affectrecords

Parameter Description
affectrecords An AffectEnum value that specifies which records this method will delete. Default is adAffectCurrent

영향 열거형 값

Constant Value Description
adAffectCurrent 1 Deletes only the current record
adAffectGroup 2 Deletes only records that satisfy the Filter setting (Filter must be set to a FilterGroupEnum value or an array of Bookmarks)

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