Browse for file in form

J

Jason V

I want the user to be able to browse for a file and when chosen, the file
name and path are inserted in the unbound Text box that started the event. I
have found much reference to the below code but I don't know how to make it
work in my database.

http://www.mvps.org/access/api/api0001.htm
API: Call the standard Windows File Open/Save dialog box

Do I just copy and paste the code into my VBA window? When I do I get an
error, "Only comments may appear after End Sub, End Function, or End
Property".

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top