FollowHyperlink warning

D

Dan

I am using the below to open a pdf but despite the setwarning false I am
still getting a warning "Hyperlinks can be harmful to your computer...." how
can I get rid of that warning.
Many thanks,
Dan

Dim ProjPath
ProjPath = "C:\Resume.pdf"
DoCmd.SetWarnings False
Application.FollowHyperlink ProjPath
DoCmd.SetWarnings True
 
J

Jack Leach

This is part of the operating system and not something you can control from
within access. As easy as FollowHyperlink is to use, it has it's downfalls...

You can instead use the ShellExecute API to shell the file... go to
mvps.org/access and look under their API section, titles "start an app with
Shell Execute" for an importable version.

hth
--
Jack Leach
www.tristatemachine.com

"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)
 

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