-1

I have a database that I use in VB. As records update there is a lot of useless info in there because access doesn't reuse the same spots. So that information has to be removed. Before I would use compact & repair and access 2000 and it would correct this. It would correctly adjust the file size and remove all the wasted space or whatever happens in Access.
Compact and repair feature in 2007 and 2010 does not fix the file size. why?

5
Contributors
7
Replies
37
Views
1 Year
Discussion Span
Last Post by Nevin_1
3

"Compact and repair feature in 2007 and 2010 does not fix the file size."

Really??? I just made a very simple little access 2007 database, put some data into it, edited field contents with large copy and pastes, deleted records etc, with saves after every edit, and after each time I ran the compact and repair tool, the file size was reduced.

Now if your database file is large, you may not notice a change in size from say 15,000,490 to 15,000,050 and get the impression its not working as its size could be reported as 15,000kb each time But on my little 400kb db, changes up and down of 10, 20, 50, 100kb were easily spotted.

Also, if you are running the compact and repair every time you edit a single record, then the before edit and after edit and compact repair size can be very very similiar. So you wouldn't see much difference at all. Try running it after enough edits that you can see the file size has increased after a while.

I didn't bother testing it in my access 2013 copy however.

1

To move to a new container, just build a new, blank database and import everything into that new container. If you're using 2010 to do this, note you can create databases using the older .mdb format if needed (and if you're supporting users who are running 2003 or prior, you'll need to keep the .mdb format).
To do this:
1) Make a backup of your database
2) In the File tab, select the New option on the leftside menu
3) On the rightside, click the folder icon just next to the box where you type the FileName.
4) In the dialog that shows, locate the path to store the new database, and enter the name
5) Select the "Microsoft Access Databases (2002-2003 format)(*.mdb)" option in the "Save as type" dropdown.
6) Click the OK button
This will create a new database, in the location that you specify, with the name you specify.
Now open that database in 2010, and do this:
1) Click the External Data ribbon group
2) Click the Access item
3) Use the Browse button to locate the database from which you want to import the database
4) Be SURE to select the first option (i.e. the "Import tables, blah blah" option)
5) Click OK
6) In the Import Objects dialog, select the tables you want to import. Be sure to review the settings in the Options button to see if you need any of those (chances are you do not).
7) Click OK, and Access will import the selected objects to your new database
Now, close out the database and make a copy of it. Reopen the new database, and Compact it.

0

I am very grateful for your advice. Thank you very much! The issue has been resolved.)

-2

Kernel for Access, a wonderful third party utility to extract complete data from corrupt MDB and ACCDB files of MS Access database. The software enables users to retrieve complete Access data such as OLE data, original date format, memo data, table relationships, etc. accurately.
The software supports all MS Access versions i,e. 2013, 2010, 2007, 2003, XP, 2000, 97, 95. For more information about the software features and working, visit: http://www.repairaccessdatabase.com

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.