command button to preview an outside report

L

lns5674

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.
 
A

Albert D.Kallal

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....
 
Top