ADO ဖျက် နည်း
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်
လက်ရှိ မှတ်တမ်း သို့မဟုတ် မှတ်တမ်းအုပ်စုကို ဖျက်ရန် Delete နည်းလမ်းကို အသုံးပြုသည်။ မှတ်တမ်းတစ်ခုကို ဖျက်ပြီးနောက်၊ သင်သည် အခြားမှတ်တမ်းတစ်ခုသို့ မရွှေ့မချင်း ဖျက်လိုက်သော မှတ်တမ်းသည် လက်ရှိတွင် ရှိနေမည်ဖြစ်သည်။
မှတ်ချက်- အကယ်၍ သင်သည် အတွဲလိုက်အပ်ဒိတ်မုဒ်တွင် ရှိနေပါက UpdateBatch နည်းလမ်းကို သင်ခေါ်ဆိုသောအခါ ဖျက်ခြင်းဖြစ်လိမ့်မည်။
မှတ်ချက်- ဤနည်းလမ်းကိုအသုံးပြုရန် Recordset အရာဝတ္ထုသည် မှတ်တမ်းဖျက်ခြင်းကို ခွင့်ပြုကြောင်း သေချာပါစေ။
မှတ်ချက်- ဤနည်းလမ်းမအောင်မြင်ပါက၊ ဝန်ဆောင်မှုပေးသူက လုပ်ဆောင်မှုကို ရပ်တန့်မည်မဟုတ်သော်လည်း ၎င်းသည် Errors Collection သို့ သတိပေးချက်ပေးပို့မည်ဖြစ်သည်။
အထားအသို
objRecordset.Delete affectrecords
Parameter | Description |
---|---|
affectrecords | An AffectEnum value that specifies which records this method will delete. Default is adAffectCurrent |
EffectEnum တန်ဖိုးများ
Constant | Value | Description |
---|---|---|
adAffectCurrent | 1 | Deletes only the current record |
adAffectGroup | 2 | Deletes only records that satisfy the Filter setting (Filter must be set to a FilterGroupEnum value or an array of Bookmarks) |
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်