I'd question doing either.
Your application should be split into a front-end (containing the queries,
forms, reports, macros and modules), linked to a back-end (containing the
tables and relationships). It's the back-end that needs compacting, and
Compact On Close only works on the "active" database (the front-end). If the
front-end becomes bloated, simply replace it with a new copy.
As well, I personally don't think it's a good idea to compact that
regularly. The decision to compact should be based on how much the database
has grown, or how much it's been used.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"dch3" <(E-Mail Removed)> wrote in message
news:CC37AE4C-7584-41A8-BCC3-(E-Mail Removed)...
> If I implement DBEngine.CompactDatabase when my database closes (as
> opposed
> to the Compact on Close option), are there any caveates that I should be
> aware of?
>
> I want to give my users a message that the database is shutting down as
> opposed to the Access Application Window just sitting there until the DB
> is
> compacted.
>
> I'm also fully aware that I'll have to build the code into an Exit routine
> and then force the user's to Exit via the routine - I'm in the process of
> implementing custom Menu Bars.