Should I re-create criteria using form filter of just use the relevant query as recordsource?

C

Chris K

I need to create a range of (5 or 6) filters for a form and let the user
choose them from combo - also need to create some reports/mail merges using
same criteria but via query

If I already have some queries with correct criteria, should I re-create
same criteria using form filter of just use the relevant query as
recordsource?

Which would best approach?
 
S

Stuart McCall

Chris K said:
I need to create a range of (5 or 6) filters for a form and let the user
choose them from combo - also need to create some reports/mail merges using
same criteria but via query

If I already have some queries with correct criteria, should I re-create
same criteria using form filter of just use the relevant query as
recordsource?

Which would best approach?

Specifying the name of a stored query as the form's recordsource will always
be the most efficient way. Stored queries optimize themselves as they are
run against data. Such optimizations are retained for future sessions. This
way your form can take advantage of them.
 
C

Chris K

Stuart McCall said:
Specifying the name of a stored query as the form's recordsource will
always be the most efficient way. Stored queries optimize themselves as
they are run against data. Such optimizations are retained for future
sessions. This way your form can take advantage of them.

Yes I think I'll use the queries as record source
 

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

Top