Form prompts for query criteria

  • Thread starter Thread starter Ashley
  • Start date Start date
A

Ashley

I would like my query to query based on what I select from
the unbound form with a combo box.
Please help!

Thanks
 
Hi Ashley

here's some notes i wrote on a similar question where the query was used as
the source for a report as well:

the way i do it is
1. create the query that i want
2. use the report wizard to build a report based on the query
3. create the "report options" form - ensuring that i name each control
something easy to find later (ie if its the start date that i want i name
the control startdate) - close & save form
4. return to the query, click in the criteria line of the field that i
need to reference the control on the form
5. click on the expression builder icon on the toolbar
6. go to forms / all forms / find my "report options" form, in the centre
section double click on the form control that i am using as the criteria
do this for all of the criteria that i'm setting
7. close & save query
8. return to the form & put a command button on it to open the report in
print preview mode - close & save form
9. open form, set criteria, click print button

hope this helps (if you're not interested in using it in a report then
ignore steps 2 & 8)

Cheers
JulieD
 
Back
Top