View Single Post
  #7 (permalink)  
Old 12-06-03, 22:12
CyberLynx CyberLynx is offline
Stuck on my opinions...
 
Join Date: Nov 2003
Posts: 1,487
Place the code in a Module located in the modules section of your database window and make it a Public Function like this:

Code:
Public Function LaunchApp32 (MYAppname As String) As Integer
In the function itself...change:

Code:
MsgBox "This code waited to execute until " _ 
          & MyAppName & " Finished",64
To this:

Code:
Exit Function
Now you can call this function from ANYWHERE within your program (DB) like this:

Code:
If LaunchApp32(myAppName) = True Then 
   '....Put your program code here....
   '.................................................
   '.................................................
 End If
Reply With Quote