G
Grit
Guest
I have writen vb code to import an xls. file into a new table in access. The source xls. file is all formatted as text. It works with no data errors, so long as the excel file is open. However if the xls file is closed I get corrupt data in the table e.g.
excel to access
0200240 -> 0200240 ok
2800200 -> 2.8002e+006 error
Do Not Fit -> Do Not Fit ok
DoCmd.TransferSpreadsheet acImport,acSpreadsheetTypeExcel97, "ColData", FormMain.TextPrjDir.Text + "Cols.xls", True
where - FormMain.TextPrjDir.Text= source directory
I've searched the forum and found one similar question regarding 'importing with decimal sign' 07-18-2005 but there is no solution.
any suggestions?
excel to access
0200240 -> 0200240 ok
2800200 -> 2.8002e+006 error
Do Not Fit -> Do Not Fit ok
DoCmd.TransferSpreadsheet acImport,acSpreadsheetTypeExcel97, "ColData", FormMain.TextPrjDir.Text + "Cols.xls", True
where - FormMain.TextPrjDir.Text= source directory
I've searched the forum and found one similar question regarding 'importing with decimal sign' 07-18-2005 but there is no solution.
any suggestions?