I have an external app that is started in the first part of the code, I want it to shut down when it is done doing what it has to do:
Private Sub Dump_Data_Click()
Dim stAppName As String
stAppName = "O:\Warehouse\Scan\Scanpal 2\AG Utilities\232_read.exe"
Call Shell(stAppName, 1)
Dim stDocName As String
stDocName = "import"
DoCmd.RunMacro stDocName
Exit_Dump_Data_Click:
Exit Sub
Err_Dump_Data_Click:
MsgBox Err.Description
Resume Exit_Dump_Data_Click
End Sub
You can see in the beginning that it starts the external app called 232_read.exe, how can I end this (Close the external app)when the process is finished after running the macro?
Private Sub Dump_Data_Click()
Dim stAppName As String
stAppName = "O:\Warehouse\Scan\Scanpal 2\AG Utilities\232_read.exe"
Call Shell(stAppName, 1)
Dim stDocName As String
stDocName = "import"
DoCmd.RunMacro stDocName
Exit_Dump_Data_Click:
Exit Sub
Err_Dump_Data_Click:
MsgBox Err.Description
Resume Exit_Dump_Data_Click
End Sub
You can see in the beginning that it starts the external app called 232_read.exe, how can I end this (Close the external app)when the process is finished after running the macro?