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!

Want to get a files path from a browse button / dialog box

Status
Not open for further replies.

GriffG

Programmer
Feb 13, 2005
10
NZ
I want to open a form that is used for importing a csv file into the database, I need to be able to find the files path.

I am wanting to have a browse button on the form that opens a dialog that you can you to find the file. then I want to store the path and the path+filename into two Variables.

this is so that I can use the same dialog for the import and the export of the information. the path for exporting to a csv and the path+filename for importing from a csv
 
Depending of your version of Office you may consider the FileDialog object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I am using Access 2003 but I am also wanting to be able to do this in Access 2000. will the FileDialog object Work in both of those?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top