Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5991855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:26:53+00:00 2026-05-22T23:26:53+00:00

I have Microsoft Access database (.mdb) that contains too much data. When i delete

  • 0

I have Microsoft Access database (.mdb) that contains too much data. When i delete the data in it by code or by deleting records, the data is completely deleted. However the database size remains the same (i.e. not decreased) and AutoNumber Fields start from last number saved before deleting records. I ask if there is a way like (empty database in MySql) by which i could have Just the database scheme as if it is created new and never contained data before. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:26:54+00:00Added an answer on May 22, 2026 at 11:26 pm

    You want to compact and repair the database.

    It’ll vary depending on the version of MS-Access you are using, but in 2010 you can find it on the Database Tools ribbon.

    Basically, when you delete record from MS-Access (much like a file on a hard drive), it doesn’t truly delete it right away. It just marks the record as deleted. When the DB needs to write a new record, it will likely (if the space is sized correctly) try to write over top of one of these areas, rather than increase the size of the database.

    Compacting and Repairing the database, amongst other things, removes all of these deleted records from the database.

    Which leads to the question. Should you do it regularly? Like defragging your hard drive, not necessarily. Sometimes removing all the blank spaces in the DB and reduce performance (as some time you have records that change size regularly and my no longer fit in the space allotted for them). Also, a compact and repair is not without risk (I have had it take a functioning database and corrupt it beyond repair) – so it’s a VERY good idea to take a backup first.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Microsoft Access database query that I'm trying to import into a
Does Microsoft Access have Full Text Search? I know that MySQL and SQL Server
We have a Microsoft SQL Server 2005 database that needs to be converted back
EDIT: I have submitted a bug report and Microsoft have acknowledge that it is
I have Microsoft Script debugger installed and selected (somwhere) as the script debugger of
I have: Microsoft Visual Studio 2008 Team Explorer Version 9.0.21022.8 When I go to
Are there any ports to WPF of Silverlight's MultiScaleImage (aka DeepZoom)? Have Microsoft road-mapped
I have a Microsoft keyboard with a series of non-standard buttons such as Mail,
I have a interest in a reported bug which Microsoft have made available a
For .net 3.5 SP1, Microsoft have the new client profile which installs only a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.