Filter vs SQL Statement

  • Thread starter Thread starter Vensia
  • Start date Start date
V

Vensia

Dear all,

To filter subform recordsource, is it better to use filter property or SQL
statement ?
Which one is fastest ?
Thanks.

Vensia
 
Both work fine.

My personal preference is to apply a filter if I want the user to be able to
remove it using the interface they already know, and change the RecorcSource
if they should not be able to remove it (e.g. if the filter excludes
appointments of other users.)

The only catch is that Access doesn't work correctly if you filter both the
main form and the subform. Details:
Incorrect filtering of forms and reports
at:
http://allenbrowne.com/bug-02.html
(This bug is fixed in Access 2007.)
 
Allen,

Thanks for the info.

Vensia

Allen Browne said:
Both work fine.

My personal preference is to apply a filter if I want the user to be able to
remove it using the interface they already know, and change the RecorcSource
if they should not be able to remove it (e.g. if the filter excludes
appointments of other users.)

The only catch is that Access doesn't work correctly if you filter both the
main form and the subform. Details:
Incorrect filtering of forms and reports
at:
http://allenbrowne.com/bug-02.html
(This bug is fixed in Access 2007.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top