एडीओ रद्दबैच विधि
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ
CancelBatch विधि बैच अद्यतन को रद्द कर देती है। इस विधि को कॉल करते समय रिकॉर्डसेट बैच अपडेट मोड में होना चाहिए।
चूंकि आप नहीं जानते कि इस संपत्ति को कॉल करने के बाद वर्तमान रिकॉर्ड क्या होगा, आपको एक ज्ञात रिकॉर्ड में जाना होगा। उदाहरण के लिए, आप इस विधि को कॉल करने के बाद MoveFirst या MoveLast विधि को कॉल कर सकते हैं।
यदि यह विधि विफल हो जाती है, तो प्रदाता निष्पादन को नहीं रोकेगा, लेकिन यह त्रुटि संग्रह को एक चेतावनी भेजेगा।
वाक्य - विन्यास
objRecordset.CancelBatch affectrec
Parameter | Description |
---|---|
affectrec | Optional. An AffectEnum value that indicates which records this method will affect |
EffectEnum 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 |
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ