I have created a Select query to export data from two tables to a spreadsheet using the OutputTo Action in a Macro. The query is named QUARTERLY_EXPORTqry. The only criteria I have set is Between [Enter Start Date, MM/DD/YY] And [Enter End Date, MM/DD/YY] to the Value Date field to specify the date range of the records returned/exported. This query and macro works fine.
I’ve also created a separate Update query to update one field in one of the two tables (DATAtbl.NOT_DATE) that the QUARTERLY_EXPORTqry is tied to. The query is named UPDATE_NOTIFIED_DATEqry and the field to be updated is taken from the QUARTERLY_EXPORTqry. The Update To action is set to Date(). This update query also works fine.
What I’d like to do is that when the operator runs the macro to export the report to Excel, the NOT_DATE field in the DATAtbl table is also updated; however, without having the operator input the date range twice, i.e. the first time when the report is exported to Excel and the second time to run the Update query.
Any suggestions?
Thanks,
Scott