I have a macro that run weekly and is executed from a batch file via windows task scheduler. I am using access 2003
My macro imports several spreadsheets into access.
That all works just fine.
The macro looks in a folder and imports several different excel files into the proper tables.
Sometimes some the excel files are not in the folder because there is no new data to import.
When i run the macro manually and there is not a file
access throws an error saying the file is not there i can click ok and the macro continues the execute the rest of the way. However if the job runs via the taskscheduler and this error comes up it will not skip past it it is waiting for confirmation.
How can i tell my macro to ignore these errors and keep going when they comes up?
thanks
My macro imports several spreadsheets into access.
That all works just fine.
The macro looks in a folder and imports several different excel files into the proper tables.
Sometimes some the excel files are not in the folder because there is no new data to import.
When i run the macro manually and there is not a file
access throws an error saying the file is not there i can click ok and the macro continues the execute the rest of the way. However if the job runs via the taskscheduler and this error comes up it will not skip past it it is waiting for confirmation.
How can i tell my macro to ignore these errors and keep going when they comes up?
thanks