ADO CancelBatch Yöntemi
❮ Kayıt Kümesi Nesne Referansını Tamamlayın
CancelBatch yöntemi, toplu güncellemeyi iptal eder. Bu yöntem çağrılırken Kayıt Kümesi toplu güncelleme modunda olmalıdır.
Bu özelliği çağırdıktan sonra mevcut kaydın ne olacağını bilmediğiniz için bilinen bir kayda geçmek zorunda kalacaksınız. Örneğin, bu yönteme yapılan bir çağrıdan sonra MoveFirst veya MoveLast yöntemini çağırabilirsiniz.
Bu yöntem başarısız olursa, sağlayıcı yürütmeyi durdurmaz, ancak Hata Koleksiyonuna bir uyarı gönderir.
Sözdizimi
objRecordset.CancelBatch affectrec
Parameter | Description |
---|---|
affectrec | Optional. An AffectEnum value that indicates which records this method will affect |
AffectEnum Değerleri
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 |
❮ Kayıt Kümesi Nesne Referansını Tamamlayın