Compacting a DB

G

Guest

Using MS Access 2007, having build a financial reporting utility, I now have
a potential database corruption problem, given that the reports imported and
then removed and reimported leave the DB growing in size, where if it were to
be compacted without closing we would never reach the max size of a DB being
2GB. How can I autiomate the Compact routine from within the VBA script that
imports and deletes these tables, without existing the DB? Or can this be
done, if not how do I prevent the DB reaching ist's maximum size without the
user having to remember to do this manually?

Thnak you
 
G

Guest

You cannot do a compact and repair operation while executing code in your
application. A compact & repair must be done externally if you want to
automate it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top