Link to home
Start Free TrialLog in
Avatar of BernieTay
BernieTay

asked on

Browse to file, Insert in form as a hyperlink

HI
I want to be able to let a user browse to a file from an Access 2000 form, On selecting a file the full path would be saved to the underlying table, and preferably display on the form as a hyperlink, though my main concern is being able to browse,select and save the full path of a file.
I would be happy if I could get it to just save as text, without the hyperlink.
This is a fairly urgent request, and I have only just scratched the surface of Access so please make all answers in dummy format; preferably with an example.
Many Thanks
Avatar of stevbe
stevbe

Avatar of BernieTay

ASKER

Hmmm OK but what does it mean/do?
I would prefer not to blindly copy, and have a clue as to exactly what it all does. Really I spose I am looking for guru, to hold my hand through the process.
Hmmm OK but what does it mean/do?
I would prefer not to blindly copy, and have a clue as to exactly what it all does. Really I spose I am looking for guru, to hold my hand through the process.
the only thing that code does is wrap up the Win32 api call to open the standard file dialog box and returns a string of the full path and name of the file selected.
OK so thats what it does; but how does it help me in my scenario and how do I use it?
Where does what code go
How do I call the code
How do I assign the resulting file to the text box in my access form
ASKER CERTIFIED SOLUTION
Avatar of stevbe
stevbe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ahh thats better nice and dummy-fied just how I like it;  and this will save the path in the underlying table?
Someimes it is hard to determine exactly how much help someone is looking for :-)

As long as your textbox is bound to the field in your table ... the control source of the textbox property has the field name and the form's Recordsource is the name of the table or a query that is based on that table you should be good to go.

Steve

Excellent Job; It worked for me

Many Thanks

Bernie
Hello Steve,
I want to show .jpg files on form. Using your code, I select .jpg file. Now how I could show it on form? I tried it with Bound Ole Object, but it didn't work. Could you advice?
Thanks,
Paresh
param7pd, please open your own question as this one is already closed