G
Guest
I'm using the OutputTo method to export the results of a query to Excel, and
it is working fine so long as the user does not cancel the action when the
filename dialog box displays, at which point an error occurs.
This is what I wrote to ouput the results to Excel:
DoCmd.OutputTo acOutputReport, Me.Export2ExcelList, acFormatXLS, , True
My question is: how can i stop the runtime error?
it is working fine so long as the user does not cancel the action when the
filename dialog box displays, at which point an error occurs.
This is what I wrote to ouput the results to Excel:
DoCmd.OutputTo acOutputReport, Me.Export2ExcelList, acFormatXLS, , True
My question is: how can i stop the runtime error?