Is there a way to customize the way Access handles the import routine, in regards to table errors? If there is a way, I'd like to change the error table naming from what is currently used.
Here is why: I have a database where I want to allow the import of multiple workbooks at the same time, each of which can contain multiple worksheets.
Though it is rare that someone will need to import multiple files, it would be at least possible.
Initially when testing I did not get all the errors, but now, once I started telling Access that yes each worksheet should have field names, it's been creating error tables.
I previously setup some code to loop through these tables and correct the table errors after the imports are complete in another database, and so I can adapt that code to this database.
The problem comes in with this one b/c of the table naming.
In order to differentiate what sheet came from what workbook, currently, I have the table naming scheme like this:
[blue]WorkbookName_SheetName[/blue]
That works fine for everything else, except for the error tables. Apparently when there is an error, Access uses solely its own naming scheme for the tables.
When there are any errors found, Access creates the Import Error Tables that look like this:
[blue]SheetName[/blue]$_ImportErrors
There may be a better method all around to do this, and now I'm wondering again whether I chose the best method... Because a workbook or worksheet name could already contain the [blue]_[/blue] character, so...
But the question is specifically:
How do I tell Access to use a different naming scheme for Import Error Tables?
Any suggestions/thoughts/references?
Thanks
--
"If to err is human, then I must be some kind of human!" -Me
Here is why: I have a database where I want to allow the import of multiple workbooks at the same time, each of which can contain multiple worksheets.
Though it is rare that someone will need to import multiple files, it would be at least possible.
Initially when testing I did not get all the errors, but now, once I started telling Access that yes each worksheet should have field names, it's been creating error tables.
I previously setup some code to loop through these tables and correct the table errors after the imports are complete in another database, and so I can adapt that code to this database.
The problem comes in with this one b/c of the table naming.
In order to differentiate what sheet came from what workbook, currently, I have the table naming scheme like this:
[blue]WorkbookName_SheetName[/blue]
That works fine for everything else, except for the error tables. Apparently when there is an error, Access uses solely its own naming scheme for the tables.
When there are any errors found, Access creates the Import Error Tables that look like this:
[blue]SheetName[/blue]$_ImportErrors
There may be a better method all around to do this, and now I'm wondering again whether I chose the best method... Because a workbook or worksheet name could already contain the [blue]_[/blue] character, so...
But the question is specifically:
How do I tell Access to use a different naming scheme for Import Error Tables?
Any suggestions/thoughts/references?
Thanks
--
"If to err is human, then I must be some kind of human!" -Me