Running external applications from access
I am trying to run a batch file process from an application called Monarch. I have no trouble in running the below application using Shell, but when the program opens it prompts me to enter a filepath to run a .bat file, in much the same way we want to open a certain file in Excel after starting up the Excel application. I want to run the application, which I can do, but I also want vba to input the filepath into the prompt box, which looks exactly like the promt given to you by Access/Excel when open/saveas files.
My code looks like this at the moment:
Call Shell("C:\Program Files\Monarch\program\Autoscrp.exe", vbMinimizedFocus)
Please help!!
|