Results 1 to 3 of 3
  1. #1
    shubhamgandhi is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2011
    Posts
    22

    Post Memory management, control, mdb file size

    What are some good practices to control the memory you block up with VBA.


    For example, I declare objects, open connections, open recordsets, etc, but does that memory get freed again?

    When I started the project I'm working on, my Access .mdb file was only 300kb, now its 13Mb!!!! (and its only 300 lines of code)
    Everytime I run my code, I can see my .mdb file size grow by a few hundred kb.

    So please help me out on how I should go about on maintaining my file size.

    Thanks!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,742
    Do regular Compact and Repair to free up space. Every time you delete a query etc Access keeps the space, until you do a compact and Repair.

  3. #3
    Mat2666 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2011
    Posts
    1
    This tip saved me about 180 Mb, thank you!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Font Size control
    By techexpressinc in forum Forms
    Replies: 2
    Last Post: 06-29-2011, 06:26 AM
  2. How to size form and keep control box
    By mhh12 in forum Forms
    Replies: 3
    Last Post: 06-25-2011, 11:10 AM
  3. With VB, how can you get the DB file size?
    By KathyL in forum Programming
    Replies: 1
    Last Post: 11-16-2010, 01:03 PM
  4. Replies: 1
    Last Post: 04-29-2010, 05:15 PM
  5. File Management
    By Lindsur in forum Database Design
    Replies: 1
    Last Post: 04-14-2010, 01:58 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums