How can I prevent the Error 2501 - User canceled the operation error message if the user opts to hit the Cancel button on the Output To popup window where the user is to enter the filename and path of the output file? THANKS!!!
Code:
Private Sub cmdExportToExcel_Click()
DoCmd.OutputTo acOutputQuery, "qryEXP_LSPData", acFormatXLS
End Sub