Parameter Report

A

Antavas

I'm in charge of putting together Ad Hoc reports for my department. What I
want to do is create a form where any user can choose certain criteria from
drop down boxes, choose their date range and than have some pre made reports
that would generate based off of the inputted information.

How would I create a query that would return the information choosen from
drop down boxes and inputted date ranges?
 
A

Allen Browne

See:
Search form - Handle many optional criteria
at:
http://allenbrowne.com/ser-62.html

If you download the sample database, you will see how to create a filter
string from any combination of boxes the user chooses to use. The example
applies the filter to a form, but it's exactly the same to create the filter
for a report. In the end, you just use the filter string like this:
DoCmd.OpenReport "Report1", acViewPreview, , strWhere
 

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