How to run an external Program

  • Thread starter Thread starter Shadow
  • Start date Start date
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
 
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
 
Back
Top