jimrward
Well-known Member
- Joined
- Feb 24, 2003
- Messages
- 1,878
- Office Version
- 2016
- 2013
- 2011
- 2010
- 2007
- Platform
- Windows
My project has a base set of data that is fixed with weekly update files that I place in another folder
These updates are same structure as base data so after loading I combine the 2 tables
I have used the generated code for select from folder for my csv files and all works well up until now
Today there were no updates so the folder was empty, how can I add another step to the load updates to stop it falling over with an error and effectively create an empty table as opposed to falling over and leaving last weeks updates in my table as my thinking would be any error trapping would halt any table refresh I need it to proceed
My other thinking would be deleting the table at the start of the script and handling the error to exit nicely
These updates are same structure as base data so after loading I combine the 2 tables
I have used the generated code for select from folder for my csv files and all works well up until now
Today there were no updates so the folder was empty, how can I add another step to the load updates to stop it falling over with an error and effectively create an empty table as opposed to falling over and leaving last weeks updates in my table as my thinking would be any error trapping would halt any table refresh I need it to proceed
My other thinking would be deleting the table at the start of the script and handling the error to exit nicely