I have a incredibly simple batch file that calls MicroSoft Acces, opens a specified database, then calls a Macro within the opened database. Once this macro completes, I want to use the batch file to terminate Access. What code can I use to do this?
Here is the code from my batch file:
@echo off
"C:\Program Files\Microsoft Office\OFFICE11\msaccess.e
xe" "C:\Access\TESTDB\TESTDB.m
db" /x MACRO1
Once the macro completes I'd like to close the database and Microsoft Access.
Start Free Trial