Hi guys, I am sure this has probably been asked a thousand times but..
I have a simple access app that I have been using on my own and now I need to make functions availalble to less experienced users.
I have a report that is built from a query (I learned long ago not to build reports on tables!)
The query takes three parameters to apply a filter (the WHERE clause): [shop],[year] and [week]
This report get run from a number of places (I run it manually and I now need to automatically output the report from a form)
I want to print the report using 'DoCmd.OutputTo acReport' because I want to format it as Snapshot. How can I pass the report parameters to the report from the DoCmd function, I would rather not re-write the query to take param values from a form, nor apply filter criteria to the report.
To make things harder (or easier depending on how you look at it) I also want the parameters to affect the output path and filename for the snapshot file.
I will be putting these param values into a form, but what is the most effective way to use them.
TIA
Obiron
I have a simple access app that I have been using on my own and now I need to make functions availalble to less experienced users.
I have a report that is built from a query (I learned long ago not to build reports on tables!)
The query takes three parameters to apply a filter (the WHERE clause): [shop],[year] and [week]
This report get run from a number of places (I run it manually and I now need to automatically output the report from a form)
I want to print the report using 'DoCmd.OutputTo acReport' because I want to format it as Snapshot. How can I pass the report parameters to the report from the DoCmd function, I would rather not re-write the query to take param values from a form, nor apply filter criteria to the report.
To make things harder (or easier depending on how you look at it) I also want the parameters to affect the output path and filename for the snapshot file.
I will be putting these param values into a form, but what is the most effective way to use them.
TIA
Obiron