I am a bit of a noob who needs help with a problem that I have not been able to figure out on my own.
A database that I created has a main query that includes a lot of calculations of data that it pulls from a main table. The main query prompts the user for a date range with a "Between [start date] And [end date]" request in the Criteria for the "Date" field. I have also created many secondary queries that get their data from the calculated fields in the main query. Finally, I have created about a dozen individual reports that are based upon each of these secondary queries.
I have automated the process of running these reports with a macro that executes the "OutputTo" action a dozen times to save each report as an individual Rich Text file. The problem I have is that, when I run the macro, it asks me for the [start date] and [end date] a dozen separate times.
Is it possible to modify the macro to prompt the user one time for the start and end dates and then to pass those dates on to each individual report/query? Or do I need to try to do this with a VBA module?
Thanks for any help you can give me with this matter.
A database that I created has a main query that includes a lot of calculations of data that it pulls from a main table. The main query prompts the user for a date range with a "Between [start date] And [end date]" request in the Criteria for the "Date" field. I have also created many secondary queries that get their data from the calculated fields in the main query. Finally, I have created about a dozen individual reports that are based upon each of these secondary queries.
I have automated the process of running these reports with a macro that executes the "OutputTo" action a dozen times to save each report as an individual Rich Text file. The problem I have is that, when I run the macro, it asks me for the [start date] and [end date] a dozen separate times.
Is it possible to modify the macro to prompt the user one time for the start and end dates and then to pass those dates on to each individual report/query? Or do I need to try to do this with a VBA module?
Thanks for any help you can give me with this matter.