ADO Resync နည်းလမ်း
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်
Resync နည်းလမ်းသည် Recordset တစ်ခုတွင် ဒေတာကို ပြန်လည်ဆန်းသစ်စေသည်။
အကြံပြုချက်- ဒေတာဘေ့စ်နှင့် Recordset ကို ပြန်လည်ချိန်ကိုက်ရန် ဤနည်းလမ်းကို အသုံးပြုပါ။ ဒေတာဘေ့စ်တွင် အပြောင်းအလဲများကို မြင်လိုပြီး static သို့မဟုတ် forward-only Recordset ကို အသုံးပြုနေပါက၊ ဤနည်းလမ်းသည် အသုံးဝင်ပါသည်။
မှတ်ချက်- ဤနည်းလမ်းသည် Recordset ကို ပြန်လည်လုပ်ဆောင်ခြင်းမရှိပါ၊ ထို့ကြောင့် ဒေတာဘေ့စ်ရှိ မှတ်တမ်းအသစ်များကို မြင်နိုင်မည်မဟုတ်ပေ။
အထားအသို
objRecordset.Resync affectrecords,resyncvalues
Parameter | Description |
---|---|
affectrecords | Optional. An AffectEnum value that specifies which records this method will affect. Default is adAffectAll |
resyncvalues | Optional. A ResyncEnum value that specifies if underlying values are overwritten. Default is adResyncAllValues |
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 |
ResyncEnum တန်ဖိုးများ
Constant | Value | Description |
---|---|---|
adResyncAllValues | 2 | Default. Overwrites data, and pending updates are canceled |
adResyncUnderlyingValues | 1 | Does not overwrite data, and pending updates are not canceled |
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်