ADOCancelBatchメソッド_
❮完全なレコードセットオブジェクトリファレンス
CancelBatchメソッドは、バッチ更新をキャンセルします。このメソッドを呼び出すときは、Recordsetをバッチ更新モードにする必要があります。
このプロパティを呼び出した後、現在のレコードがどうなるかわからないため、既知のレコードに移動する必要があります。たとえば、このメソッドを呼び出した後、MoveFirstメソッドまたはMoveLastメソッドを呼び出すことができます。
このメソッドが失敗した場合、プロバイダーは実行を停止しませんが、エラーコレクションに警告を送信します。
構文
objRecordset.CancelBatch affectrec
Parameter | Description |
---|---|
affectrec | Optional. An AffectEnum value that indicates which records this method will affect |
AffectEnum値
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 |
❮完全なレコードセットオブジェクトリファレンス