Connecting Tech Pros Worldwide Forums | Help | Site Map

Starting other Applications

Member
 
Join Date: Mar 2007
Posts: 74
#1: Jun 6 '07
Is it possible to start up an application via Command button? i want to open another database (B) to view information while in database (A).

Expert
 
Join Date: Nov 2006
Location: Andover, Hants, UK
Posts: 215
#2: Jun 6 '07

re: Starting other Applications


Hi Hutch

Yes, you can use the following code in the button's click event:-
Expand|Select|Wrap|Line Numbers
  1. Dim TaskId as Variant
  2. TaskId = Shell(CommandLine, WindowStyle)
Check out the help on the Shell function.

HTH
Steve
Reply