Metodo ADO CancelBatch
❮ Riferimento completo dell'oggetto Recordset
Il metodo CancelBatch annulla un aggiornamento batch. Il recordset deve essere in modalità di aggiornamento batch quando si chiama questo metodo.
Poiché non sai quale sarà il record corrente dopo aver chiamato questa proprietà, dovrai spostarti in un record noto. Ad esempio, puoi chiamare il metodo MoveFirst o MoveLast, dopo una chiamata a questo metodo.
Se questo metodo ha esito negativo, il provider non interromperà l'esecuzione, ma invierà un avviso alla raccolta errori.
Sintassi
objRecordset.CancelBatch affectrec
Parameter | Description |
---|---|
affectrec | Optional. An AffectEnum value that indicates which records this method will affect |
AffectEnum Values
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 |
❮ Riferimento completo dell'oggetto Recordset