ADO Filter Property
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်
Filter ပိုင်ဆိုင်မှုသည် Recordset အရာဝတ္ထုရှိ ဒေတာအတွက် စစ်ထုတ်မှုပါရှိသော မူကွဲတစ်ခုကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။ စစ်ထုတ်မှုသည် သင့်အား သီးခြားသတ်မှတ်ချက်များနှင့် ကိုက်ညီသော မှတ်တမ်းများကို ရွေးချယ်နိုင်စေပါသည်။
Filter ပိုင်ဆိုင်မှုတွင် အောက်ပါတို့ထဲမှ တစ်ခု ပါဝင်နိုင်သည်-
- သတ်မှတ်ချက် စာကြောင်းတစ်ခု
- စာညှပ်များ ခင်းကျင်းထားသည်။
- FilterGroupEnum တန်ဖိုး တစ်ခု
စံသတ်မှတ်ချက်စာကြောင်း၏ ဥပမာများ-
- rs.Filter="Lastname='Smith'"
- rs.Filter="Lastname='Smith' နှင့် မွေးနေ့ >= #4/10/70#"
- rs.Filter="Lastname='Jonson' OR Lastname='Johnson'"
- rs.Filter= "အမည်ရင်း 'Jon*'"
- rs.Filter="[ကုမ္ပဏီအမည်]='Alfred Futterkiste' သို့မဟုတ် မှာယူမှုများ>$300.00"
စာညှပ်များ ခင်းကျင်းခြင်း ဥပမာ-
dim fname(10)
fname(2)=rs.Bookmark
rs.Filter=fname(2)
Filter ပိုင်ဆိုင်မှုကို သတ်မှတ်သောအခါ၊ ကာဆာသည် စစ်ထုတ်ထားသော Recordset ရှိ ပထမဆုံးစံချိန်သို့ ရွှေ့သည်။ ထို့အပြင်၊ Filter ပိုင်ဆိုင်မှုကိုရှင်းလင်းသောအခါ၊ cursor သည် စစ်ထုတ်မထားသော Recordset အတွင်းရှိ ပထမဆုံးစံချိန်သို့ ရွေ့သွားပါသည်။
အထားအသို
objRecordset.Filter
FilterGroupEnum တန်ဖိုးများ
Constant | Value | Description |
---|---|---|
adFilterNone | 0 | Removes the current filter |
adFilterPendingRecords | 1 | Filter that displays only edited records that have not yet been sent to the server |
adFilterAffectedRecords | 2 | Filter that displays only records affected by the last Delete, Resync, UpdateBatch, or CancelBatch call |
adFilterFetchedRecords | 3 | Filter that displays the records in the current cache |
adFilterConflictingRecords | 5 | Filter that displays those records that failed the last batch update |
❮ ပြီးပြည့်စုံသော Recordset Object ရည်ညွှန်းချက်