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

"Browse" button

Status
Not open for further replies.

lazydays

Technical User
Sep 29, 2003
93
GB
Hi,

I want to be able to click a button and browse my hard drive and then import the selected file to the correct table.

I have read a few threads about this, but to be honest, it goes over my head.

I am new to VB programming so a guide for plebs would be gratefully received!!!
 
This is asked all the time. If you searched this site you should have got a link to this:


There are a lot of ways to do this, especially if you have A2003. The above uses the API. It is pretty easy just cut the code off of the site and place into a module. Then call the function. The browse comes up and the function returns the path.
 
OK, I have the browse box working now, but I do not want to open or save the file. I want to import it to a specific table in the database.

How do I go about doing that?

Thanks in advance!
 
Depending on your access version you may simply play with the FileDialog object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top