Browsing for file name

J

John F

I am using a text field called [txtPath] to store a file name.
Then I used an “ImageBox†with a control source “=[CurrentProject].[Path] &
"\Images\" & [txtPath]†this works all fine and dandy. It displays the image
in the form just like I want. I can type another file name and the view
changes to the new file.

Now I am stuck! How can I under program control browse for the file name
that I want to show up in the image box? All files are images with jpg
extension.
 
J

John F

Now I am really lost???????

PieterLinden via AccessMonster.com said:
John said:
I am using a text field called [txtPath] to store a file name.
Then I used an “ImageBox†with a control source “=[CurrentProject].[Path] &
"\Images\" & [txtPath]†this works all fine and dandy. It displays the image
in the form just like I want. I can type another file name and the view
changes to the new file.

Now I am stuck! How can I under program control browse for the file name
that I want to show up in the image box? All files are images with jpg
extension.

use the OpenSaveFile API to prompt the user for it....
http://www.mvps.org/access/api/api0001.htm

--
Message posted via AccessMonster.com


.
 

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