D
Daniel
Hi,
I been executing a query and outputing it to Excel with
the following code:
DoCmd.OutputTo acOutputQuery, "QueryName", acFormatXLS, _
"FileName.xls", -1
This works great, but the query requires user input so if
the user decides to press cancel instead of entering the
values that the query wants, the program crashes. Is
there any way I can check if the user hit cancel? And if
the user hits cancel, how can I tell it to ignore or stop
the execution of the DoCmd...?
Thank You
I been executing a query and outputing it to Excel with
the following code:
DoCmd.OutputTo acOutputQuery, "QueryName", acFormatXLS, _
"FileName.xls", -1
This works great, but the query requires user input so if
the user decides to press cancel instead of entering the
values that the query wants, the program crashes. Is
there any way I can check if the user hit cancel? And if
the user hits cancel, how can I tell it to ignore or stop
the execution of the DoCmd...?
Thank You