How to quit from ACCESS (1 Viewer)

rickyfong

Registered User.
Local time
Yesterday, 20:28
Joined
Nov 25, 2010
Messages
199
I got the following batch file command

"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "C:\COMMON\PRINTACCESS.MDB"


of which is to trigger a autoexec marco to print some table automatically. However, after print the last VBA is DOCMD.CLOSE. But it only quit to close the printaccess.MDB, leaving the user still in the ACCESS environment. Just want to know how to quit from ACCESS and let the user totally unknown any automatic process! Thanks a lot!!
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:28
Joined
May 7, 2009
Messages
19,247
application.Quit
 

Users who are viewing this thread

Top Bottom