create a hyperlink to a folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a hyperlink to a folder using a command button on a
form in Access. Is this possible?
 
jhucks8 said:
I am trying to create a hyperlink to a folder using a command button on a
form in Access. Is this possible?

Sure, something like:

Private Sub cmdHyperLink_Click()
Application.FollowHyperlink HyperlinkPart(Me.txtHyperLink, acAddress)
End Sub

where txtHyperLink is a textbox with the path to the folder or file. You can
also use ShellExecute (which is faster and more fool proof)

http://www.mvps.org/access/api/api0018.htm
 

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

Back
Top