How to run an external Program

S

Shadow

Hello,

How can I run an external program within MS-Access?
I need to run windows Calculator by clicking a button in a form.

At present the users of a database have to click Start menu and select RUN and type "Calc" to run the calculator. Is there any way to run external programs from MS-Access?


I appreciate any kind of help.

Ghalamkari
 
P

PC Datasheet

Put the following code in the OnClick event of the button:

Dim RetVal
RetVal = Shell("C:\WINDOWS\CALC.EXE", 1)


--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
www.pcdatasheet.com


Hello,

How can I run an external program within MS-Access?
I need to run windows Calculator by clicking a button in a form.

At present the users of a database have to click Start menu and select RUN and
type "Calc" to run the calculator. Is there any way to run external programs
from MS-Access?


I appreciate any kind of help.

Ghalamkari
 

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