ADO UpdateBatch နည်းလမ်း
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်
UpdateBatch နည်းလမ်းကို Recordset တစ်ခုအတွင်းရှိ ပြောင်းလဲမှုအားလုံးကို ဒေတာဘေ့စ်သို့ သိမ်းဆည်းရန်အတွက် အသုံးပြုပါသည်။ အသုတ်အပ်ဒိတ်မုဒ်တွင် မှတ်တမ်းအစုံကို သင်လုပ်ဆောင်နေချိန်တွင် ဤနည်းလမ်းကို အသုံးပြုသည်။
သိမ်းဆည်းခြင်း လုပ်ဆောင်ချက် မအောင်မြင်ပါက၊ အချိန်ပိုင်း အမှားအယွင်း ဖြစ်ပေါ်ပြီး အမှားအယွင်းများကို အမှားများ စုစည်းမှုတွင် သိမ်းဆည်းထားသည်။
အကြံပြုချက်- CancelBatch နည်းလမ်းသည် အသုတ်အပ်ဒိတ်များအားလုံးကို ပယ်ဖျက်သည်။
မှတ်ချက်- Recordset အရာဝတ္ထုအားလုံးသည် အတွဲလိုက်မွမ်းမံခြင်းကို မပံ့ပိုးပါ။
အထားအသို
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 တန်ဖိုးများ
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 |
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်