ADO CancelBatch- methode
❮Volledige recordsetobjectreferentie
De methode CancelBatch annuleert een batchupdate. De Recordset moet zich in de batch-updatemodus bevinden wanneer deze methode wordt aangeroepen.
Aangezien u niet weet wat het huidige record zal zijn na het aanroepen van deze eigenschap, zult u moeten verhuizen naar een bekend record. U kunt bijvoorbeeld de methode MoveFirst of MoveLast aanroepen na een aanroep van deze methode.
Als deze methode faalt, stopt de provider de uitvoering niet, maar stuurt hij een waarschuwing naar de foutenverzameling.
Syntaxis
objRecordset.CancelBatch affectrec
Parameter | Description |
---|---|
affectrec | Optional. An AffectEnum value that indicates which records this method will affect |
AffectEnum-waarden
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 |
❮Volledige recordsetobjectreferentie