"G Gerard" <gg*****@nbnet.nb.cawrote in
news:tt*******************@ursa-nb00s0.nbnet.nb.ca:
Is it a good idea to do a Compact and Repair Database every time
the application is closed so to keep the size of the mdb to a
minimum?
Access 2000 and later provides the "Compact on close" option.
I would recommend that it NEVER BE USED.
First off, if your app is properly structured, you're opening only
the front end. Front ends may bloat a bit, but since they have no
data in them, the bloat is finite, and so there's no compelling
reason to ever compact a front end (except to update the table stats
that are cached in the table links; that is, if you add 100K records
to a 10-record table in the back end, it would be a good idea to
compact the front end to update its metadata about that back-end
table; this metadata is used in optimizing queries and for other
purposes, such as helping the Rushmore data retrieval technology
decide how to retrieve data).
And COMPACT ON CLOSE is downright *dangerous* when opening a back
end because sometimes a compact to a damaged MDB will lose data that
is still accessible before the compact.
So, I would say:
Always keep COMPACT ON CLOSE turned off.
--
David W. Fenton
http://www.dfenton.com/
usenet at dfenton dot com
http://www.dfenton.com/DFA/