benlinkknilneb
Programmer
Hey all,
I'm Importing a comma-delimited text file into my Access2000 db. The problem I'm running into is that the TransferText method decided all my fields should be numbers... including one with text in it. Because of this, I got a table with the errors listed and a lot of records in my import totally wiped out (because text can't convert to number). Is there a way I can tell Access what data types there are in code? My file comes in like this:
The error is in the 4th field, which is the "Part Number". Access tries to convert it to a Long Integer, and of course, all my records lose the data because there are characters in there.
If I import this manually, it works fine... but automating it with TransferText isn't working.
Ben
I'm Importing a comma-delimited text file into my Access2000 db. The problem I'm running into is that the TransferText method decided all my fields should be numbers... including one with text in it. Because of this, I got a table with the errors listed and a lot of records in my import totally wiped out (because text can't convert to number). Is there a way I can tell Access what data types there are in code? My file comes in like this:
Code:
20030509,3,08,F5TE8505DA,5,14,20030506,1,01
20030509,3,08,F5TE8505DA,10,41,20030506,1,01
20030509,3,08,F5TE8505DA,1,42,20030506,1,01
20030509,3,08,F5TE8505DA,1,43,20030506,1,01
The error is in the 4th field, which is the "Part Number". Access tries to convert it to a Long Integer, and of course, all my records lose the data because there are characters in there.
If I import this manually, it works fine... but automating it with TransferText isn't working.
Ben