ADO CancelBatch နည်းလမ်း
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်
CancelBatch နည်းလမ်းသည် အသုတ်အပ်ဒိတ်ကို ပယ်ဖျက်သည်။ ဤနည်းလမ်းကိုခေါ်ဆိုသည့်အခါ Recordset သည် အသုတ်အပ်ဒိတ်မုဒ်တွင် ရှိနေရပါမည်။
ဤပိုင်ဆိုင်မှုကိုခေါ်ဆိုပြီးနောက် လက်ရှိမှတ်တမ်းသည် မည်ကဲ့သို့ဖြစ်လာမည်ကို သင်မသိသောကြောင့်၊ သင်သည် သိရှိထားသည့်မှတ်တမ်းတစ်ခုသို့ ပြောင်းရွှေ့ရမည်ဖြစ်သည်။ ဥပမာအားဖြင့်၊ သင်သည် ဤနည်းလမ်းကိုခေါ်ဆိုပြီးနောက် MoveFirst သို့မဟုတ် MoveLast နည်းလမ်းကို ခေါ်ဆိုနိုင်သည်။
ဤနည်းလမ်းမအောင်မြင်ပါက၊ ဝန်ဆောင်မှုပေးသူက လုပ်ဆောင်မှုကို ရပ်တန့်မည်မဟုတ်သော်လည်း ၎င်းသည် Errors Collection သို့ သတိပေးချက်ပေးပို့မည်ဖြစ်သည်။
အထားအသို
objRecordset.CancelBatch affectrec
Parameter | Description |
---|---|
affectrec | Optional. An AffectEnum value that indicates which records this method will affect |
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 ရည်ညွှန်းချက်