I am using Access 2003
We have an ACCESS database that is potentially LINKED to 1 to n Excel files (potentially up to 18) in a particualr folder that will be cleared down each evening and then loaded up with Excel sheets each morning. Data creation is triggered by running a macro which tries to read each spreadsheet in turn via an individual table append query.We have a problem when one of the Excel files is missing as the macro is expecting all of them. In reality this may not happen but if it does what happens then is that the process just stops at the point where the missing file is and doesn’t move on to the following file. What we need to do really is to check if the expected file is there and process it if it is there or move on to the next one if not.
It is possible that as part of the macro we may need to add a stored procedure step or run a command? I am at a loss on how to do this
We have an ACCESS database that is potentially LINKED to 1 to n Excel files (potentially up to 18) in a particualr folder that will be cleared down each evening and then loaded up with Excel sheets each morning. Data creation is triggered by running a macro which tries to read each spreadsheet in turn via an individual table append query.We have a problem when one of the Excel files is missing as the macro is expecting all of them. In reality this may not happen but if it does what happens then is that the process just stops at the point where the missing file is and doesn’t move on to the following file. What we need to do really is to check if the expected file is there and process it if it is there or move on to the next one if not.
It is possible that as part of the macro we may need to add a stored procedure step or run a command? I am at a loss on how to do this