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

Reading file in directory

Status
Not open for further replies.

coughnut

Programmer
Dec 6, 2005
27
US
Hi, I need some help in what I am trying to do. I want be able to go to a directory and open every single file in that directory in order to populate a table. I was wonderring if any one new how to do this or could guide lines in doing this. I would need to do this in VBA, Thank you very much.
 
Have a look at the Dir function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
thanks a bunch. Do you know any good websites that would have good info on this function. The only ok webiste that I know is msdn. thanks once again.
 
Just look it up in VBA help.
Mind you, Dir will just give the file name and extension, if you need the full path, you may have to open a filesystem object...also in Access help.

Or, do a search here...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top