T
Tony Wainwright
Hi guys
I am writing an application in Access 2003 that takes data from an Excel
Spreadsheet that currently has 24,000 rows. Currently I am using the
TransferSpreadsheet argument of DoCmd to import the spreadsheet. However,
the Spreadsheet has around 800 errors, usually #DIV0! or DataType which are
put into an Errors table. What I want to do is, using VBA, read each row in
the Spreadsheet, as in a Do While Not rst.EOF loop and error trap from
within the application. Using the TransferSpreadsheet method I can't do
this. What I had thought about was using the TransferDatabase method and
linking to an ODBC datasource. Would this allow me to read the spreadsheet
1 row at a time? If not, is there anyway I can do this?
Thanks
Tony
I am writing an application in Access 2003 that takes data from an Excel
Spreadsheet that currently has 24,000 rows. Currently I am using the
TransferSpreadsheet argument of DoCmd to import the spreadsheet. However,
the Spreadsheet has around 800 errors, usually #DIV0! or DataType which are
put into an Errors table. What I want to do is, using VBA, read each row in
the Spreadsheet, as in a Do While Not rst.EOF loop and error trap from
within the application. Using the TransferSpreadsheet method I can't do
this. What I had thought about was using the TransferDatabase method and
linking to an ODBC datasource. Would this allow me to read the spreadsheet
1 row at a time? If not, is there anyway I can do this?
Thanks
Tony