I am open to alternatives to my problem.
Using Access 2007 on Win XP
I have created an import spec and saved it as TODImport. When done as a manual import it works as it should. But when run as a VBA Script (DoCmd.TransferText acImportDelim, "TODImport", "tmpTable", strFile), it does not.
The table gets created with the proper headings for all 27 fields, but the data gets placed in up to the first 3 fields.
The source file is a Fixed Width text file
Any idea why?
I am saving to a temp table so I can then reimport to the correct table and add the source file as a field and format dates and amounts correctly.
Using Access 2007 on Win XP
I have created an import spec and saved it as TODImport. When done as a manual import it works as it should. But when run as a VBA Script (DoCmd.TransferText acImportDelim, "TODImport", "tmpTable", strFile), it does not.
The table gets created with the proper headings for all 27 fields, but the data gets placed in up to the first 3 fields.
The source file is a Fixed Width text file
Any idea why?
I am saving to a temp table so I can then reimport to the correct table and add the source file as a field and format dates and amounts correctly.