I'm building a query and plan to tie it to a report that when opened they
could have a drop down list of the field they would like to display data for
report. Do you know how this can be done opposed to having several different
reports?
Thanks
I dont think reports have dropdown lists.
First off, how similar/different are the reports? If its just a
different selection criteria like between certain dates or just pick
selected customers, than you can need to modify the query for each
different view. If you are using different queries, if they have the
same field names, you can change the record source of the report in
the _Load procedure.
You can use the _Load procedure to change everything in the report
before it runs. Here you would tie all the record sources to your
report. Then the user uses a form to select the information he/she
wants to see.
If the reports will have different formating and data is very
different, you are better off creating a new report for each.
Personally, unless the formating and data are almost the same, I
wouldnt use the same report. You'll spend more time making the changes
and coding than it would to just do a Save As and have a copy of the
report, and tweek it with the necesary information.
- GL