Wassup everybody,
This is my first time posting on this message board.
I am building a button to import an Excel file. I am using:
to open import an excel file into Access and append it to an existing table. I have some more code after this that only works if the user imports the excel file.
My problem is when the user clicks "Cancel" on the Import Window, the rest of my code gets executed that results in error messages.
Is there anyway exit the procedure if the user decides to cancel the import?
Thanks
This is my first time posting on this message board.
I am building a button to import an Excel file. I am using:
Code:
DoCmd.RunCommand acCmdImportAttachExcel
My problem is when the user clicks "Cancel" on the Import Window, the rest of my code gets executed that results in error messages.
Is there anyway exit the procedure if the user decides to cancel the import?
Thanks
Comment