I am trying to open MS access have a delay of about 5 seconds then close the application.
With the .bat file below I have the program opening but I can not get it to close after the delay.
@echo off
start /B "Access" "C:\Program Files (x86)\Microsoft Office\OFFICE14\MSAccess.exe"
"G:\Departmental Submissions\Cardiac Rehab\Cardiac Rehab.accdb"
wait -n 5
TASKKILL /F /IM MSAccess.exe
the third reply on this indicates that you have to write a startup script to close it....
To get the database to close you need to write a Startup function which controls
all the events you wish to run and then use Docmd.Quit,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With