I have gone and read the code posted inn:
http://www.mvps.org/access/api/api0004.htm
But unfortunately, I am too green to understand full usage. Can you please
answer some questions?
Do I need to name this module? and if so, what name do I give it. And
where he says to call shell I have already this code (see below ----). How
do I integrate both?
----
Private Sub cmdImportRKEM_Click()
On Error GoTo Err_cmdImportRKEM_Click
Dim stAppName As String
stAppName = "C:\GOV\MLTRKEM.BAT"
Call Shell(stAppName, 1)
Exit_cmdImportRKEM_Click:
Exit Sub
Err_cmdImportRKEM_Click:
MsgBox Err.Description
Resume Exit_cmdImportRKEM_Click
End Sub
-----
Brian said:
Is there a way to force Shell synchronously so that it waits for the
task to complete before working its way down to the next line of code?
If not, can I track the status of the task ID returned by the shell
to find out if it is closed before proceeding to the next step in my
code?
Try the code posted here:
http://www.mvps.org/access/api/api0004.htm