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:
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