Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Home > Forums > Access Forum > Bloated Database by Clifford Jensen
Back to Access Forum    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Bloated Database
Clifford Jensen 
     
2 days ago
I have been developing/updating a database for a client since 2015.  Over the years, the database has grown to 1.5 GB in size.  The client recently requested a complex change.  While developing the change, I performed many test runs, often encountering errors, causing me to halt the process.  I was about to upload a copy to the client for testing when I noticed the database had bloated from 1.5 GB to 2.1 GB in just two days.
Yes, I use Compact and Repair often and out of desperation. I started a new blank database and imported all of the tables, queries, forms, and modules, and compiled and tested the new copy.  Much to my pleasure, it worked just fine.  My question is, why did this database reduce from over 2 GB to less than 35 MB????  What gets stuck in the bowels of the database that Compact and Repair does not reach?
One last note: I do use a backend database, so the data tables are not the issue.
Donald Blackwell  @Reply  
       
2 days ago
Does the database have any attachments, OLE Objects, or may have the front ends accidentally have copied some images or icons into the gallery versus just linking them
Richard Rost  @Reply  
          
2 days ago
Clifford, splitting the database does not prevent the front end itself from bloating. Design changes and temporary objects can increase its size even when the data lives in a separate back end.

Compact and Repair normally reclaims unused space, but it cannot repair every internal problem. Importing into a blank database copies the selected objects into a separately initialized database. The drop to 35 MB suggests that most of the old size was not needed by the imported application, but it does not tell us exactly what occupied that space. The size difference alone does not prove VBA corruption or embedded images.

Keep the original backup and check the table links, startup settings, references and any saved import/export specifications in the new copy. Then watch its size while repeating the tests that caused the rapid growth.

The Compact and Repair video explains normal space reclamation. Your case goes beyond simply needing to compact more often.
Kevin Yip  @Reply  
     
2 days ago
Are there any hidden tables?  You can unhide all tables to make sure.  We don't usually hide our own data, but you never know.
Clifford Jensen OP  @Reply  
     
2 days ago
Thanks for some feedback.  It took 11 years for it to reach 1.5 GB and only 2 days to reach 2.1 GB.  My client asked that I combine multiple PDF reports into one file.  I researched how this could be done, including the use of .dlls ect. I chose to use a COM available with Adobe Acrobat.  It involves producing the individual reports then using the Acrobat COM to combine them into a single file.  Since I was doing this for numerous people at a time, I had to 'Kill' the original reports produced for each employee then recreate them for the next employee.  Most of my errors occurred when my code wasn't adjusting properly to changed file names and raised errors.
Is it possible, when the errors occurred and I had to stop the process that the report(s) suspended in the Print Preview mode became bloat in my frontend?
I will definitely keep an eye on any signs of bloat as I continue my development.
Thanks again,
Cliff
Richard Rost  @Reply  
          
2 days ago
Cliff, the interrupted routine is worth investigating, but an open Print Preview does not establish what caused the permanent file growth. Access can leave temporary objects behind, so we need to isolate which stage is growing the front end.

Kill deletes the exported PDFs on disk. It does not close an Access report or reclaim space inside the database. It can also raise an error if the file is still open.

Give the routine a cleanup path for both normal completion and handled errors. Close the Access reports and Acrobat documents that your routine opened, then release the COM object variables. Delete the source PDFs only after the merged PDF has been saved and checked and the source files have been closed.

On separate backup copies, compare a small export-only batch with the full export-and-merge process. Check the front-end file size after closing Access, before and after compacting. Record any error number and filename. That will help distinguish report generation from the merge step without assuming the previews are the cause.
Add a Reply Upload an Image
Next Unseen

 
 
What's This?

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 10/25/2026 1:07:16 AM. PLT: 0s