import a txt file

H

Howard

I CAN import a multi-field comma-delimit text file manually, but CANNOT do so
through code like this:

docmd.transfertext acImportDelim, , "tblname", "c:\filename"

The imported data turns out to be one field in the new table.

By the way, the source text file looks like:

xxxxxx;yyyyy;zzzzz
xxxxxx;yyyyy;zzzzz


Why? Any sulotion?

Thanks!

Howard
 
J

Joe Fallon

Uhmmm.
Those are semi-colons, not commas.

Also use an import spec and fill out the Docmd parameters completely.
 
A

Agus Budianto

I have the same problem while importing text file. My text fille is tab
delimited. I am working in Access Project (not Access Database). Is it true
that specification file is not exist in Access Project? Any way out?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top