kjharve
Board Regular
- Joined
- Jan 4, 2006
- Messages
- 206
Hi,
I am setting up a database for the company I work for. The database will be fed information from various departments. Each of these departments will have to populate spreadsheets. Some will be done manually, others by existing computer systems.
Potentially there could be errors in the spreadsheets, there might be typographical errors, duplicate records or key violations etc. As far as I can see I have a few options:
1.) Use the TransferSpreadsheet function and let Access worry about errors but risk some data not being transferred.
2.) Write the data to a temporary table first and then check each record before writing it to the actual table.
3.) Write some code in Excel VBA which uses ADO to check for errors in the spreadsheet so that when it is imported I can be confident no errors exist.
What method is generally employed in this situation? And are there any pitfalls I need to be aware of?
Advice appreciated!
PS - Sorry for the "essay-style" question!
I am setting up a database for the company I work for. The database will be fed information from various departments. Each of these departments will have to populate spreadsheets. Some will be done manually, others by existing computer systems.
Potentially there could be errors in the spreadsheets, there might be typographical errors, duplicate records or key violations etc. As far as I can see I have a few options:
1.) Use the TransferSpreadsheet function and let Access worry about errors but risk some data not being transferred.
2.) Write the data to a temporary table first and then check each record before writing it to the actual table.
3.) Write some code in Excel VBA which uses ADO to check for errors in the spreadsheet so that when it is imported I can be confident no errors exist.
What method is generally employed in this situation? And are there any pitfalls I need to be aware of?
Advice appreciated!
PS - Sorry for the "essay-style" question!