Run a program

J

Jone

What code do I write when I want to open a program from my computer for ex. I
want to open up the windows calculator thans is in
C:\WINDOWS\system32\calc.exe
 
T

Tony Toews [MVP]

Jone said:
What code do I write when I want to open a program from my computer for ex. I
want to open up the windows calculator thans is in
C:\WINDOWS\system32\calc.exe

Shell

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
J

John Spencer

The vba code would be

SHELL "C:\WINDOWS\system32\calc.exe"

Tony was a bit brief in his response. Try looking up Shell in the VBA help.

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top