Open a PDF

  • Thread starter Thread starter Max
  • Start date Start date
M

Max

Access 2007. Need to be able to open a (different) pdf from a form in Access.
Have written a procedure for the On Double Click of the appropriate control,
but need the command line to open a pdf located on the hard drive.

I thought the command was "Call" but could not find anything on it in either
the HELP or in the KB.

Please help.
 
Application.FollowHyperlink "PathFileName"

Example:
Application.FollowHyperlink "C:\Temp\archive.doc"

The FollowHyperlink method will open any file type with the default software
assign to it.
--
Hope this helps,

Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.com/index.php
Please rate this post using the vote buttons if it was helpful.
 
Thank you sooooo much. Your simple one line of code works like a charm!!!!
Again Thanks!
Max
 

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

Back
Top