Report through a Form

  • Thread starter Thread starter mark_hall
  • Start date Start date
M

mark_hall

Not sure if this makes sense but....

I currently have a query which has two parameters which the users
chooses (area of business and status). This then go to a report.

Now on the form which the user sees, I would like the parameters to
become drop down lists and from the selection the query will return the
relevant results through the associated report thorugh Print Preview.

Can anyone help?
 
On the Form, create 2 ComboBoxes cboBusiness and cboStatus populated with
relevant values. Also create a button for the user to open the Report in
Preview Mode.

In the RecordSource Query for the Report, just use full references to the
ComboBoxes as the Parameters for the Query. Thus, the criteria for your
Report should be something like:

....
WHERE ([Business] = Forms!YourForm!cboBusiness)
AND ([Status] = Forms!YourForm!cboStatus)

When the user clicks the CommandButton to open the Report, Access will use
the values currently selected as the parameter values for your Query /
Report.
 

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