एडीओ अपडेटबैच विधि
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ
UpdateBatch विधि का उपयोग किसी रिकॉर्डसेट में डेटाबेस में सभी परिवर्तनों को सहेजने के लिए किया जाता है। इस पद्धति का उपयोग तब किया जाता है जब आप बैच अपडेट मोड में रिकॉर्डसेट पर काम कर रहे होते हैं।
यदि सहेजें कार्रवाई विफल हो जाती है, तो एक रन-टाइम त्रुटि उत्पन्न होती है और त्रुटियाँ त्रुटि संग्रह में संग्रहीत की जाती हैं।
युक्ति: रद्दबैच विधि सभी बैच अद्यतनों को रद्द कर देती है।
नोट: सभी रिकॉर्डसेट ऑब्जेक्ट बैच अपडेट करने का समर्थन नहीं करते हैं।
वाक्य - विन्यास
bool=objRecordset.UpdateBatch affectrecords
Parameter | Description |
---|---|
affectrecords | Optional. An AffectEnum value
that specifies which records this method will affect.
Note: The value adAffectGroup will generate an error if there are no visible records in the Recordset |
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 |
❮ पूरा रिकॉर्डसेट वस्तु संदर्भ