Hi,
I'm trying to import Excel worksheets into Access using VBA, and the destination Access table is a linked table to SQL Server. Some cells in Excel have division by zero error, as #DIV/0!. When such field is encountered, import process gives me the error '3349, numeric field overflow'. The import statement I used is:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "TEMP1", sPath, True, "SHEET1!IMPORT_SECTION"
I would like to have these cells to be imported into Access as blank cells or having the value '0'. I tried setting the Access destination cell using both text and number:double type, but they both generate error 3349. In VBA, I don't want to have 'on error resume next' since it would not import the spreadsheet at all and there are many other cells with numeric values that needs to be imported. I use Access and Excel 2000. Any suggestions?
thanks for any help.
tory
I'm trying to import Excel worksheets into Access using VBA, and the destination Access table is a linked table to SQL Server. Some cells in Excel have division by zero error, as #DIV/0!. When such field is encountered, import process gives me the error '3349, numeric field overflow'. The import statement I used is:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "TEMP1", sPath, True, "SHEET1!IMPORT_SECTION"
I would like to have these cells to be imported into Access as blank cells or having the value '0'. I tried setting the Access destination cell using both text and number:double type, but they both generate error 3349. In VBA, I don't want to have 'on error resume next' since it would not import the spreadsheet at all and there are many other cells with numeric values that needs to be imported. I use Access and Excel 2000. Any suggestions?
thanks for any help.
tory