Hi,
I'm running an external program from access and I want to wait until this is done to go further with the next code line.
I've tried a number of this like
This is rather old and does not work, perhaps a reference problem.
Does anyone have an idea?
Thanks in advance
Erwin
I'm running an external program from access and I want to wait until this is done to go further with the next code line.
I've tried a number of this like
Dim wsh As Object
Set wsh = VBA.CreateObject("WScript.Shell")
Dim waitOnReturn As Boolean: waitOnReturn = True
Dim windowStyle As Integer: windowStyle = 1
wsh.Run "C:\folder\mf.exe", windowStyle, waitOnReturn
This is rather old and does not work, perhaps a reference problem.
Does anyone have an idea?
Thanks in advance
Erwin