running external program

O

OD

I would like to call a *.wav, mov or ect. from within Access 2007. I can not
find the extrernal command. Is thier a way to do this?

Thanks
OD
 
A

Albert D. Kallal

You can launch any file by going:

application.FollowHyperlink "path name to whatever"

So, to open a pdf file you can go:

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

So, the above should work for any legal file extension, including .wav and
..mov
 
D

David W. Fenton

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

So, the above should work for any legal file extension, including
.wav and .mov

....as long as there's a program registered to handle the file type.

If you have more than one application that can load your file, and
you don't want to use the default application, you'll want to use
Shell() or ShellWait() (see
http://www.mvps.org/access/api/api0004.htm for the code).
 
Top