FollowHyperlink warning

  • Thread starter Thread starter Dan
  • Start date Start date
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
 
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)
 
Back
Top