643 text files to be automativally imported to access

R

Rick Elbanna

i have 643 files, all identical with same delimeter and 8 fields, i tried to
import then one by one and it is very unoractical. is there a way to do this
automatically at one shot.
 
D

Dirk Goldgar

Rick Elbanna said:
i have 643 files, all identical with same delimeter and 8 fields, i
tried to import then one by one and it is very unoractical. is there
a way to do this automatically at one shot.

Are you importing them all into the same table? You could do it using
code, using the Dir() function to loop through the files in a folder and
call DoCmd.TransferText for each one. Or you may be able to use the
Copy command in a Command Prompt window to concatenate all the files
into one big text file, and then manually import that file.
 

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