You ignored that - because you want to keep your problem?
I think your import specification is not quite right and you need to correct it. TransferText is access to the text file (text table) via Jet/SQL. It must be defined how this text table is to be read in order to be able to use it subsequently. If no explicit import specification (alternatively Schema.ini) is used, Jet access takes standard information from the registry. However, if standard information from the registry works better than your specification, you should think and test.
Helpful details would have been:
- A csv with a few lines, but which also contains problematic content
- An own DB file with the table and the import specification used.
That would give you all the facts you would need for a real judgement.
DoCmd.TransferText acLinkDelim, "ImportWebParts", "Web_Parts", "C:\testmiport.csv", True, ""
Link the CSV. This allows you to see what content is actually being delivered. Using a recordset on it, you can check the resulting data types of the fields (Field.Type). You can use an append query to test how the data is accepted by the target table and perhaps draw new conclusions from it.
As part of the query, you could make any necessary additional reformatting.
I think your import specification is not quite right and you need to correct it. TransferText is access to the text file (text table) via Jet/SQL. It must be defined how this text table is to be read in order to be able to use it subsequently. If no explicit import specification (alternatively Schema.ini) is used, Jet access takes standard information from the registry. However, if standard information from the registry works better than your specification, you should think and test.
Stories and pictures.I have been providing detailed information
Helpful details would have been:
- A csv with a few lines, but which also contains problematic content
- An own DB file with the table and the import specification used.
That would give you all the facts you would need for a real judgement.
Last edited: