It describes shell function. You can use shell() to open the other applications from Access environment.
Main Topics
Browse All TopicsHello experts,
I was wondering if there is a way I could activate a video file by clicking a button on an Access form. The file only needs to be opened , nothing more.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thank you eghtebas: but i am not sure how to go about using the code that the link is pointing to:
What's more the code seem to be answering a specific question about a way to delay the execution of the next VBA code rahter than running an external application, but of course I could be wrong.
At any rate my question now is this: Do I place the code in a private procedure or a module and how do I go about specifying the file I need to open and its path?
In other words, is there an example of how to use the Shell function...??
Thanks
The Shell function that eghtbas refers to is used like this:
Shell "Full path to your video file"
You can place this directly in the Click Event of your command button:
Sub YourButton_Click()
Shell "Full path to your file"
End Sub
The ONLY caveat is that the extension of the file you're opening must be associated with an application on the machine. That is, if I have a file named "MyMove.avi" then I MUST have a program on that computer that is associated with the .avi extension.
Note this will launch the file external to Access ... that is, it will launch whatever program is associated with the file extension, and then launch the file in that program.
Note also that sometimes you must refer to these files a bit differently (i.e. sometimes you must specifically declare which program you wish to use to launch that program), but in general the above code works fine.
Business Accounts
Answer for Membership
by: eghtebasPosted on 2009-08-24 at 10:39:54ID: 25170517
see
http://www.mvps.org/acc ess/api/ap i0004.htm