Hyperlink code behind command button gives error

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?
 
J

John Nurick

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?
 
G

Guest

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.
 
J

John Nurick

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.
 

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