connecting to pdf files

S

sunhealth

Hi all,
I am trying to connect from an access form to an external pdf file so
that it will open in adobe reader.
Any help would be appreciated.
Thanks
 
D

Dirk Goldgar

sunhealth said:
Hi all,
I am trying to connect from an access form to an external pdf file so
that it will open in adobe reader.
Any help would be appreciated.
Thanks

You can probably call the Application.FollowHyperlink method to open it:

Application.FollowHyperlink "C:\My Documents\MyFile.pdf"

Or you could call the Windows ShellExecute API, using the code to be
found here:

http://www.mvps.org/access/api/api0018.htm
 

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