Hi
I am exporting a query from a form, via a button. The query exported is used to populate the open form but the query output is filtered by a combo box.
What I want to do is apply the same filter to the export so that what is seen in the form is also seen in the export.
The code I use for export is as follows:
'Export UK Application Health Check to Excel spreadsheet format '
DoCmd.OutputTo acQuery, "App Health Check FSL2 query", "MicrosoftExcel(*.xls)", "", False, ""
The combo box is Combo1.
Any advice would be appreciated.
Thanks
I am exporting a query from a form, via a button. The query exported is used to populate the open form but the query output is filtered by a combo box.
What I want to do is apply the same filter to the export so that what is seen in the form is also seen in the export.
The code I use for export is as follows:
'Export UK Application Health Check to Excel spreadsheet format '
DoCmd.OutputTo acQuery, "App Health Check FSL2 query", "MicrosoftExcel(*.xls)", "", False, ""
The combo box is Combo1.
Any advice would be appreciated.
Thanks