15 pts.
 VBA-question
How do I transfer 30 text files at a time into my access DB? I was able to get the files, but it did not transfer into the database. Thanks.

Software/Hardware used:
ASKED: July 31, 2008  3:11 PM
UPDATED: August 1, 2008  9:53 PM

Answer Wiki:
What do you mean that you were able to get the files? In access, use the docmd.transfertext method to import files into the database. You can do one at a time or you could use the shell function to execute the DOS copy command to combine all the files together first and then use the transfertext to import the files. Ex: shell copy file1.txt+file2.txt+file3.txt....+file30.txt BigFile.txt then docmd.TransferText acImportDelim,"import spec","table",Bigfile.txt". Of course, you may have to preface the files with the path. This example assumes that you are importing some sort of delimited file like CSV.
Last Wiki Answer Submitted:  August 1, 2008  9:53 pm  by  Randym   1,740 pts.
All Answer Wiki Contributors:  Randym   1,740 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _