I am trying to use Windows Task Scheduler to run a batch file for an
already open MS Access database. Below is the syntax to the batch file:
Batch file: DailySalesExport.bat
REM This runs the macro that exports the reports to the J drive
PATH = "C:\Program Files\Microsoft Office\Office\;C:\Windows\Command"
START /WAIT Msaccess.exe "D:\acesdata\SALES\Daily2005.mdb" /x
"SnapShotExportDailySales"
EXIT
Its working fine, the only problem is that its opening another instance
of MS Access and i dont want it to do that since that databse is
already open. I have to live it open because the main form has criteria
which the database uses.
I tried saving a shortcut of the macro to my computer:
D:\acesdata\SALES\BatchFiles\SnapShotExportDailySa lesReports.MAM
This works fine when i double click on it from windows explorer but
when i use scheduler to run it opens another instance of ms access too!
Please help
Cliff