Hyperlink Focus

D

Dave

Hello,

I am using the following code, but would like to set the focus to
whatever the file is (excel/word etc)
after completion. The focus remains in the form in Access

Private Sub File1_Click()
Application.FollowHyperlink Me.File1, , True
End Sub
 
A

Arvin Meyer [MVP]

Try using a command button with the following code, instead:

Private Sub cmdHyperlink_Click()
Me.cmdHyperlink.HyperlinkAddress = Me.File1
End Sub

It should leave the focus in the called document.
 

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

Similar Threads


Top