When I use an import specification (the field is TEXT) and import from a CSV file I receive a value of #NAME? for fields with values starting with a "+".
Why would TransferText not be able to handle text starting with a + ?
Any ideas?
This process has been working correctly for several years until this particular piece of data appeared starting with the Plus sign.
60,000 lines import fine except 25 which possess this quirky data.
The funny thing is I can manually copy and paste the row from my CSV file with the field starting with a plus sign and paste it in to my table and it pastes FINE!
Field is defined as TEXT in the import specification and the destination field is TEXT with field size of 255.
Code:
[COLOR=red][b]
For example.[/b]
[u]CSV SOURCE field Result in Table[/u][b][/b][/color]
PF-LOT PF-LOT
+PF-LOT #NAME?
I just tested this from the Immediate window and received the same errors with the fields starting with a Plus sign.
Code:
DoCmd.TransferText acImportDelim, "mportSpecification", "DESTINATIONTABLE", "\SOURCEFILE.csv", True, ""