Start "foreign" program from within Access

P

Philip

How would I format a button to start a non-Office program from an Access menu
or form?
 
A

Albert D. Kallal

The code behind the button could be:


Application.FollowHyperlink "c:\MyReport.pdf"

The above would launch the pdf file as if you clicked on it (and, whatever
application is associated with that file will be launched).

Thus, you can launch any file as per above.....

Thus it makes ZERO difference if the program is part of office or not...it a
neutral issue....

You can also launch the .exe file directly by using the shell command if you
know the path name to the .exe file...

eg:

Shell "path name to .exe file"
 
Top