humbleprogrammer
Programmer
I have a db that allows users to import text files into a pre-built table. On occasion, the imports create import error tables. The errors in these tables are not important data and I would like to automatically have the error tables deleted so the db doesn't get polluted with a bunch of import error tables. The problem is, the text files are not always named the same so the import error tables are always named something different, which makes it difficult to use the DeleteObject function. Does anyone know of a way I can use the DeleteObject to look for all tables that end in ImportErrors and delete them? Or a way I can grab the name of the file that's being imported so I can know what the name of the import error table will be?
Any suggestions are greatly appreciated.
Thanks!
Any suggestions are greatly appreciated.
Thanks!