Due to a transition between two versions of the database, in need to check if a worksheet exists in a workbook before import.
I use DoCmd.TransferSpreadsheet Method to import data. If the worksheet is not present, access doesn't throw any error, but hang on the instruction related to the missing worksheet.
What I want to do is to execute the instruction only if there is a worksheet to import, else skip.
Also, I want to achieve this without importing additional libraries in access, since the database must run in runtime mode as well.
Thank You for helping me.
http://msdn.microsoft.com/en-us/library/office/ff844793(v=office.15).aspx
I use DoCmd.TransferSpreadsheet Method to import data. If the worksheet is not present, access doesn't throw any error, but hang on the instruction related to the missing worksheet.
What I want to do is to execute the instruction only if there is a worksheet to import, else skip.
Also, I want to achieve this without importing additional libraries in access, since the database must run in runtime mode as well.
Thank You for helping me.
http://msdn.microsoft.com/en-us/library/office/ff844793(v=office.15).aspx