ADO CancelBatch- metode
❮ Voltooi rekordstel-objekverwysing
Die CancelBatch-metode kanselleer 'n bondelopdatering. Die rekordstel moet in bondelopdateringmodus wees wanneer hierdie metode aangeroep word.
Aangesien jy nie weet wat die huidige rekord sal wees nadat jy hierdie eiendom gebel het nie, sal jy na 'n bekende rekord moet skuif. Byvoorbeeld, jy kan die MoveFirst- of MoveLast-metode noem, na 'n oproep na hierdie metode.
As hierdie metode misluk, sal die verskaffer nie die uitvoering stop nie, maar dit sal 'n waarskuwing aan die Foutversameling stuur.
Sintaksis
objRecordset.CancelBatch affectrec
Parameter | Description |
---|---|
affectrec | Optional. An AffectEnum value that indicates which records this method will affect |
AffekteerEnum-waardes
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 |
❮ Voltooi rekordstel-objekverwysing