Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unexplained filesize increase

Status
Not open for further replies.

shelspa

Technical User
Dec 13, 2001
66
US
The size of my Access 97 database is increasing at a rate that exceeds what you would expect from just data entry. It will increase up to 40mg in only two weeks. After I compact it, the size goes down to around 9mg. I think it is related to opening and closing a data entry form. Doing this alone without even adding any data causes the database to increase in size by 12kb. What is up? If I can't solve this problem can I create a procedure to automatically compact the thing every time it is closed?
 
Whenever you create & delete tables there is huge data bloat. Search Google (or Google Groups) for more specifics as to why.


There is no (good) way to automatically compact-on-close in Access97, and the situation is worsened by the fact that this feature is built into Access200--which means no one wrote a utility to implement this. At least I have not found one.


I'd recommend instead a formal backup and compact process, to be performed by one of the users either at the beginning or end of the work day. I know this isn't the answer you're looking for...


Maybe this will help: there is a way to programmatically compact the database:

runcommand acCmdCompactDatabase

I'm running an unpatched version of Access97, so your "acCmd" constant may differ slightly (i.e. accmdcompactandrepairdatabase).

--
Find common answers using Google Groups:

Corrupt MDBs FAQ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top