K
Kelvin Beaton
I'm trying to do the following
Open a query that prompts the user for a date range.
Open a form to input a date range.
Export the query results to an Excel spreadsheet....
I can get all these to work, but need them to complete before the next setup
runs.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
DoCmd.OpenForm "frm_ReportDateRange", acNormal, "", "", acEdit, acNormal
DoCmd.OpenQuery "qry_ExportReportDate-ExportToExcel", acViewNormal,
acEdit
DoCmd.OutputTo acQuery, "qry_ExportReportDate-ExportToExcel",
"MicrosoftExcelBiff8(*.xls)", "", True, "", 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I'd also rather that the query not show, but run in the background.
Anyone know how to do this, or has an example db that does this?
Thanks
Kelvin
Open a query that prompts the user for a date range.
Open a form to input a date range.
Export the query results to an Excel spreadsheet....
I can get all these to work, but need them to complete before the next setup
runs.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
DoCmd.OpenForm "frm_ReportDateRange", acNormal, "", "", acEdit, acNormal
DoCmd.OpenQuery "qry_ExportReportDate-ExportToExcel", acViewNormal,
acEdit
DoCmd.OutputTo acQuery, "qry_ExportReportDate-ExportToExcel",
"MicrosoftExcelBiff8(*.xls)", "", True, "", 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I'd also rather that the query not show, but run in the background.
Anyone know how to do this, or has an example db that does this?
Thanks
Kelvin