CPGDeveloper
Board Regular
- Joined
- Oct 8, 2008
- Messages
- 190
I have an Access application that has a saved import of an excel spreadsheet which I run through code --
DoCmd.RunSavedImportExport ("SavedSpec")
Through a loop, I actually change the XML of this saved specification, and run it several times -- each time changing the name of the file I'm importing and the name of the table it's importing to.
Sometimes it works, sometimes it doesn't. When it doesn't work, I get Error 3343, Unrecognized Database Format -- and I get it on the DoCmd.RunSavedImportExport line. At this point the database becomes unstable, and automatically makes a backup of itself.
I've triple-checked to make sure that the spreadsheets that are being imported are the correct name and location, etc.
Our network is notoriously slow -- which might explain why it works sometimes and doesn't other times -- but could it be something else I'm missing?
Any thoughts or ideas would be greatly appreciated. Thanks in advance for your time.
DoCmd.RunSavedImportExport ("SavedSpec")
Through a loop, I actually change the XML of this saved specification, and run it several times -- each time changing the name of the file I'm importing and the name of the table it's importing to.
Sometimes it works, sometimes it doesn't. When it doesn't work, I get Error 3343, Unrecognized Database Format -- and I get it on the DoCmd.RunSavedImportExport line. At this point the database becomes unstable, and automatically makes a backup of itself.
I've triple-checked to make sure that the spreadsheets that are being imported are the correct name and location, etc.
Our network is notoriously slow -- which might explain why it works sometimes and doesn't other times -- but could it be something else I'm missing?
Any thoughts or ideas would be greatly appreciated. Thanks in advance for your time.