Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import Specification losing the delimiter and field separator

Status
Not open for further replies.

kathryn

Programmer
Apr 13, 2000
776
US
Good morning!

I am using VBA (TransferText) to import a text file into my Access database. I have set up an import specification with the field delimiter set to " and the field separator to ,.

When I run the code, the import specification is used, but it ignores the setting for the delimiter and separator, so it actually imports all the double quotes and commas as part of the text. If I do the import manually, it works just fine.

Any ideas? If the code couldn't find the import spec, I would expect to get some kind of error message, but the code seems to execute the TransferText command with no problem.

I have looked at the system tables and the delimiter and separator are correct in the table for the specification.

Any help would be greatly appreciated!

Kathryn


 
NEVER MIND! I figured it out. I had the first argument of TransferText set to acImportFixed, which overrules the delimeters.

Kathryn


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top