Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / October 2005

Tip: Looking for answers? Try searching our database.

command button to preview an outside report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lns5674 - 28 Oct 2005 20:39 GMT
Is there a way to create a command button on a form that can pull up  .pdf
document? If so, does anyone know the code b/c I cannot find it in Microsoft
Help.
Albert D.Kallal - 29 Oct 2005 01:01 GMT
Just use:

application.FollowHyperlink  "name of file"

eg:

application.FollowHyperlink  "c:\my documents\test.doc"

application.FollowHyperlink  "c:\my documents\test.pdf"

You can launch/open/display any file using the above syntax....

Signature

Albert D. Kallal   (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com
http://www.members.shaw.ca/AlbertKallal

MacDermott - 29 Oct 2005 01:16 GMT
I think you can do this using the Shell command.

> Is there a way to create a command button on a form that can pull up  .pdf
> document? If so, does anyone know the code b/c I cannot find it in Microsoft
> Help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.