I have the following command in my code:
DoCmd.OutputTo acOutputForm, , acFormatXLS
It allows me to export the forms data to Excel. A standard Microsoft window pops up with the directories, so I can save the file.
However, if I "Cancel" at that time, my original form returns an error message.
"Run Time error 2501 - The OutputTo action was cancelled"
Is there a way to error check this and prevent this message from occuring.
DoCmd.OutputTo acOutputForm, , acFormatXLS
It allows me to export the forms data to Excel. A standard Microsoft window pops up with the directories, so I can save the file.
However, if I "Cancel" at that time, my original form returns an error message.
"Run Time error 2501 - The OutputTo action was cancelled"
Is there a way to error check this and prevent this message from occuring.