PC Review


Reply
Thread Tools Rate Thread

Filter or RecordSource

 
 
Michael
Guest
Posts: n/a
 
      3rd Nov 2003
There's a textbox TxtFind and a subform in datasheet view SFListing.
When the user enters text in the textbox, the datasheet automatically
filters its list. I'm using this code to filter it:
Form.RecordSource = strSQL

Should I simply use the Filter property of the subform in this case? Which
one is more performant?


 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      3rd Nov 2003
It's really your choice.

One possibility is to use the form's Filter when you intend for the user to
be able to remove the filter (e.g. when filtering to one category), but
change the form's RecordSource when the user should not remove the filter
(e.g. when viewing messages/appointments specific to this user).

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Michael" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> There's a textbox TxtFind and a subform in datasheet view SFListing.
> When the user enters text in the textbox, the datasheet automatically
> filters its list. I'm using this code to filter it:
> Form.RecordSource = strSQL
>
> Should I simply use the Filter property of the subform in this case? Which
> one is more performant?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Report's recordsource = form's recordsource Johnny Bright Microsoft Access Reports 4 27th Nov 2007 11:21 PM
setting RecordSource vs. setting RecordSource and Filter =?Utf-8?B?VCBSYXkgSHVtcGhyZXk=?= Microsoft Access VBA Modules 7 30th Mar 2006 04:03 AM
Problem with Reports recordsource= Forms recordsource Alex Microsoft Access Reports 5 13th Nov 2004 11:50 PM
Repot Recordsource same as Form Recordsource Alex Microsoft Access 1 13th Nov 2004 09:59 AM
Problem with Reports recordsource= Forms recordsource Alex Microsoft Access 0 13th Nov 2004 09:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:40 AM.