ACC97: Database Doesn't Shrink Automatically When Object Deleted

Last reviewed: May 22, 1997
Article ID: Q168867
The information in this article applies to:
  • Microsoft Access 97

SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

When you delete an object in Microsoft Access 97, the size of the database remains the same or gets larger after the deletion.

CAUSE

Deleting objects from a database does not automatically cause the database to shrink in size. This is because, when an object is deleted, the space that it occupies is marked as available. However, the size of the database does not shrink.

RESOLUTION

If you are deleting objects from a database and you want the database to return to its previous size, you should compact the database.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open a new database in Microsoft Access 97.

  2. Import the Orders table from the Northwind.mdb sample database.

  3. Close the database and note the size of the .mdb file.

  4. Reopen the database and delete the Orders table.

  5. Close the database, save the changes, and then note the size of the .mdb file.

    Note that the size of the database has not decreased and, in some cases, may have increased.

REFERENCES

For more information about compacting databases, search the Help Index for "compacting databases," or ask the Microsoft Access 97 Office Assistant.


Keywords : GnlOthr kbusage
Version : 97
Platform : WINDOWS
Hardware : x86
Issue type : kbprb
Resolution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.