Hyperlink code behind command button gives error

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

Guest

I put the following code behind an on-click event on a button on my form:

Private Sub Command0_Click()
strPath = "c:\My Documents\MA-680-2.pdf"
Application.FollowHyperlink strPath
End Sub


I want to open up a PDF document which it does but gives me an error message
that I'd like to somehow surpress.

Has anybody come across this?
 
How many guesses do we get at the error message?

I put the following code behind an on-click event on a button on my form:

Private Sub Command0_Click()
strPath = "c:\My Documents\MA-680-2.pdf"
Application.FollowHyperlink strPath
End Sub


I want to open up a PDF document which it does but gives me an error message
that I'd like to somehow surpress.

Has anybody come across this?
 
It's an Access warning message (red cicle with an x in it) that basically
says hyperlinks are harmful to your computer...continue yes or no. I want to
surpress this message.

I would be grateful if someone had a work around for it because the other
user forums I've been in say to change the registery...I don't want to mess
with that.
 
On Thu, 23 Mar 2006 11:35:36 -0800, McDal

I don't get this message on either of my computers (Access 2003 and
Access 97), and haven't done anything fancy with the registry. So it
seems likely that the message is triggered by something in your
(Windows) internet security settings.
 
Back
Top