dakota727
Board Regular
- Joined
- Dec 3, 2006
- Messages
- 164
- Office Version
- 365
I am using the following to transfer Excel data into a database.
DoCmd.TransferSpreadsheet acImport, 8, "tblRawData", strInputFileName, True, ""
One of the fields [Result] fails to transfer a value when it has a value with a less than symbol (<0.04). The table I am importing into tblRawData has the [result] field formated as a text field so I am not sure why this is a problem. In the excel file that I am inporting there are very few results that are true text values in the form of a less than value with the majority being numbers even though I treat them as text. It is as if Access sees the first 50 or so records and since all the data in the results field appears numeric it wants to treat all of the following results as numeric and gives an inport error once it reaches a value that is actually text.
Has anyone come across this? This seems to be both in ACC2003 and 2007. I assume I can reorde the data in the excel file to work around the issue but I was wondering if anyone has a better solution.
DoCmd.TransferSpreadsheet acImport, 8, "tblRawData", strInputFileName, True, ""
One of the fields [Result] fails to transfer a value when it has a value with a less than symbol (<0.04). The table I am importing into tblRawData has the [result] field formated as a text field so I am not sure why this is a problem. In the excel file that I am inporting there are very few results that are true text values in the form of a less than value with the majority being numbers even though I treat them as text. It is as if Access sees the first 50 or so records and since all the data in the results field appears numeric it wants to treat all of the following results as numeric and gives an inport error once it reaches a value that is actually text.
Has anyone come across this? This seems to be both in ACC2003 and 2007. I assume I can reorde the data in the excel file to work around the issue but I was wondering if anyone has a better solution.