J
john
I am setting up a database for which i need to import data
from text files. I have setup a macro and specification to
import the file c:\import\import.txt
However there are hundreds of these .txt files I need to
import and need help on automating it. I would like to
drop all files in the c:\import directory and have Access
iterate through each until all are imported. In concept I
have thought of the following.
1) Write a For Loop that Sets an array of the files in
that folder and imports each one , or with *.txt
2) Find the first file in the folder, rename it to
import.txt, import the data, delete import.txt. This loops
until finished.
However I have not done much filesystem object VBA and a
little lost on how to tackle this one.
Regards,
John
from text files. I have setup a macro and specification to
import the file c:\import\import.txt
However there are hundreds of these .txt files I need to
import and need help on automating it. I would like to
drop all files in the c:\import directory and have Access
iterate through each until all are imported. In concept I
have thought of the following.
1) Write a For Loop that Sets an array of the files in
that folder and imports each one , or with *.txt
2) Find the first file in the folder, rename it to
import.txt, import the data, delete import.txt. This loops
until finished.
However I have not done much filesystem object VBA and a
little lost on how to tackle this one.
Regards,
John