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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load all txt files in a folder into adatabase

Status
Not open for further replies.

ri

Programmer
Nov 2, 2000
12
0
0
GB
Need to be able to allow the user to choose a whole folder and load it's contents (many txt files) all at once into the database.
 
Hi

U can use the Scripting object in VB to do the file handling as well as opening them to read line by line.

The Scripting object supports all types of file handling methods. U can go through the documentation about the Scripting object in MSDN and find out a solution to your self.
 
I would opt for the Dir function. Called once with the file "Pattern", then a while/Wend loop to get the remainder.

Just old fashioned, I guess.



MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top