gauntletxg
Well-known Member
- Joined
- Jul 15, 2008
- Messages
- 636
I have a text file containing an inventory listing. It has the following fields: part number, quantity, and cost. The part number field contains values that are both numeric and alphanumeric. I first imported the text file into a blank database, defining the data types during the import step (part - text, quantity - long, cost - double). When I did this none of the records were imported at all due to data type conversion errors.
I then repeated the import step, and this time defined every data type as text. This worked perfectly. However, if I delete all of the records from the table that was just created, and try to import the same text file into that table Access doesn't like it and kicks every single record out due to data type errors. I've never seen this before - importing and creating a new table with every field as text works fine, but importing the same file into the same table that was just created doesn't work at all.
Any one ever come across this before?
I then repeated the import step, and this time defined every data type as text. This worked perfectly. However, if I delete all of the records from the table that was just created, and try to import the same text file into that table Access doesn't like it and kicks every single record out due to data type errors. I've never seen this before - importing and creating a new table with every field as text works fine, but importing the same file into the same table that was just created doesn't work at all.
Any one ever come across this before?