ADO CancelBatch Method
❮ Pełne odniesienie do obiektu zestawu rekordów
Metoda CancelBatch anuluje aktualizację wsadową. Recordset musi być w trybie aktualizacji wsadowej podczas wywoływania tej metody.
Ponieważ nie wiesz, jaki będzie bieżący rekord po wywołaniu tej właściwości, będziesz musiał przejść do znanego rekordu. Na przykład możesz wywołać metodę MoveFirst lub MoveLast po wywołaniu tej metody.
Jeśli ta metoda nie powiedzie się, dostawca nie zatrzyma wykonywania, ale wyśle ostrzeżenie do kolekcji błędów.
Składnia
objRecordset.CancelBatch affectrec
Parameter | Description |
---|---|
affectrec | Optional. An AffectEnum value that indicates which records this method will affect |
AffectEnum Wartości
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 |
❮ Pełne odniesienie do obiektu zestawu rekordów