A button that opens browser and inserts selection into field

K

Kathy Webster

I have a form with a hyperlink field: [RelatedDocument]. The user types the
full path and filename of a document he/she wishes to hyperlink to. Instead
of making the user manually type the full path and filename, can I create a
cmd_button that opens a browser and lets the user navigate to the desired
path and file, then click on it and have that path and filename insert into
the [RelatedDocument] hyperlink field of my form?

Thank you for your help :)
 
A

Allen Browne

Try this in the Click event procedure of your command button:

Me.RelatedDocument.SetFocus
RunCommand acCmdInsertHyperlink
 

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