ADO CancelBatch- Methode
❮ Vollständige Recordset-Objektreferenz
Die CancelBatch-Methode bricht eine Stapelaktualisierung ab. Das Recordset muss sich beim Aufrufen dieser Methode im Stapelaktualisierungsmodus befinden.
Da Sie nach dem Aufrufen dieser Eigenschaft nicht wissen, wie der aktuelle Datensatz aussehen wird, müssen Sie zu einem bekannten Datensatz wechseln. Beispielsweise könnten Sie nach einem Aufruf dieser Methode die Methode MoveFirst oder MoveLast aufrufen.
Wenn diese Methode fehlschlägt, stoppt der Anbieter die Ausführung nicht, sendet aber eine Warnung an die Errors Collection.
Syntax
objRecordset.CancelBatch affectrec
Parameter | Description |
---|---|
affectrec | Optional. An AffectEnum value that indicates which records this method will affect |
AffectEnum-Werte
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 |
❮ Vollständige Recordset-Objektreferenz