I am using the code posted on the Access Web by Terry Kreft to shell and
wait for an application to finish before continuing. The application I am
shelling out to requires that the current directory be changed before it can
run successfully (because it calls another application using a relative
path). Can anyone post some advice that I could use to make this work.
Below is my code and the code from the Module.
----------------------------
My Form Code
----------------------------
strShellPathName = Mas_Scr_Hwd & "\PVXWIN32.EXE ..\LAUNCHER\SOTA.INI
...\SOA\MAS90 -ARG ..\vi\" & viJobID & " W O DIRECT " & viMode & " " &
MAS_SCR_CMP
ShellWait (strShellPathName)
----------------------------
End My Form Code
----------------------------
A link to the code by Terry is below. I don't think it would be appropriate
for me to re-post his code without his permission, but it's available at the
following website:
http://www.mvps.org/access/api/api0004.htm
Thanks in advance for any ideas.