473,471 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problems with "Compact and Repair"

LBryant
18 New Member
This is a more general question, although I rely mostly on VBA for my Access design.

This issue only started recently and has me worried. I have a dabase named Media calendar.mdb. When I use the "Compact and Repair" utility, MS Access creates a new copy named "db1.mdb" and leaves the original file untouched.

This has never happened before. Can anyone tell me why this is happening? I do this manually as an admin function rather than always doing it on closing of the database.

What's going on? IT distributed updates to the MS Office suite. Could that have an effect?
May 12 '08 #1
4 4869
nico5038
3,080 Recognized Expert Specialist
This happens when Access isn't able to save the compacted database under the "old official" name. A Compact&Repair always creates a temp database (db1.mdb) to store the result. Just check or the database does work and remove the old one and rename the new one.
You could also just try a new Compact and Repair, make sure that no objects are open when starting the compact & repair.

Nic;o)
May 12 '08 #2
missinglinq
3,532 Recognized Expert Specialist
And just to add, you really should always do it manually rather than using "Compact and Repair on Close!" This feature is one of Micro$oft's poorer ideas! Compacting can often cause corruption, and hence a backup copy of the database should always be made before compacting.

Welcome to bytes!

Linq ;0)>
May 12 '08 #3
LBryant
18 New Member
Well, my IT support got back to me with an explanation. It is indeed a result of a MS security patch. Here's what he sent me:

---------------------------------------------------------------------------------------
Issue: Access - Customer is trying to repair and compact his/her database and it creates a compacted db1.mdb file instead


Cause: This is likely due to an upgrade to Office 2003 11.0_3 and all pertinent security patches and compatibility packs

Resolution: The Microsoft (MS) Access features “Compact and Repair” and “Compact on Close” do not work when the MS Access database is on a clustered server and the version of MS Access is from the SMS package Office2003_11.0_3.0.0 (MS Office 2003 SP3).

A Microsoft provided hot-fix (KB945674) that corrects this problem is currently being evaluated and is tentatively scheduled to be included in the May 2008 Security patch release for Microsoft Office products.
------------------------------------------------------------------------------------

Hope this helps others working with Access 2003 in a corporate environment.

Leon
May 13 '08 #4
NeoPa
32,556 Recognized Expert Moderator MVP
Thanks for this very helpful update Leon. We appreciate the feedback.

Although clearly in this case this is a result of the update, the more general advice given here is still worth following. It's unwise to rely too heavily on a Compact/Repaired database. I always do it from one file to a separate one then I can check the resultant database before deleting the original.

In practice I simply keep both copies and reuse the names next time around so I've always got a fallback.

PS. Sounds like your IT people are a reliable bunch. A fully researched answer like that is not always forthcoming.
May 13 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Chris Mullins | last post by:
I have a Windows Service that I created using Visual Studio.NET 2003. No custom code, just an empty Windows Service. In VS.NET, I right click on the service, and say "Add Installer", to create a...
0
by: msnews.microsoft.com | last post by:
I am using Visual .NET studio to create a deployment project. When you run the setup.exe again, there will be two options for the user: uninstall or repair. I wonder how to disbale the repair...
1
by: smitty mittlebaum | last post by:
I have a strange problem that has reared its ugly head in the last few weeks. I have the option "Compact on Close" (Tools, Options, General tab) enabled on my development machine. I did this...
1
by: John Hunter | last post by:
I've recently had a nasty problem with the "Invalid reference to the property Form" error in subforms - nasty because it doesn't seem to consistently happen to all forms which contain the same...
2
by: Terry Fleming | last post by:
I have upgrade a 97 access database to 2003. I have a vb6 front end that I am trying to connect to the database. I am getting the "3343 Unrecognized database" error. I checked the references and...
3
by: Brian Foree | last post by:
I am developing an ASP.NET application that uses Access 2000 as its backend, and have just started getting the following error on 2 ASP.NET pages that had been working until late last week (and I...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
1
by: mamoon | last post by:
I am using RHEL4. Last time while booting it shows "repair filesystem". i have used in this way sda1,sda2 and others are ok. BUT when i run this command on sda7 (which is mounted on root) it...
5
by: jbperez808 | last post by:
I find myself having to do the following: x = (some complex expression) y = x if x else "blah" and I was wondering if there is any built-in idiom that can remove the need to put (some complex...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.