I'm trying to use a button to close a database which has compact-on-exit set. However docmd.RunCommand acCmdCompactDatabase won't run from a form (there are lots of threads about this here), and both Access.RunCommand acCmdExit and DoCmd.Quit both ignore the flag.
Is there a way around this? and why does it get bypassed anyway?
Is there a way around this? and why does it get bypassed anyway?