I have an Access Database that outputs a report in Excel format.
The report is dependent on a date parameter chosen by the user. This parameter is selected via a textbox (text100) that has a pop up calendar.
I would like to use the date in the text box (text100) in the filename.
You have to take responsibility for asking for the parameter. I like using global parameters that I can get/set via global functions – this way they can be set anywhere and the queries can have access to them as well.
Just need a couple subs/functions in module:
Then in your query (remove the date parameter)
Then in your code where you run the export
Obviously this code needs a little tweaking to compile… 🙂