Solved

How do you compact and repair a sealed off database?

Posted on 2012-04-03
3
394 Views
Last Modified: 2012-04-09
I have a database that has the ribbon hidden, the shift key disabled, the F-11 key disabled.  How do I get in there and compact and repair if the database has a problem?
0
Comment
Question by:Sasha42
3 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 250 total points
ID: 37802096
If the application is not open, you  should be able to use the CompactRepair method from the Immediate window of another Access application.

After making a backup, try:

application.CompactRepair "SourceFilename", "DestinationFilename", True
0
 
LVL 77

Expert Comment

by:peter57r
ID: 37802134
(:-) Fix a problem with C & R?
That would be a novelty.  I can't ever remember C & R fixing any problem I had.
0
 
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 250 total points
ID: 37802149
You can't compact and repair the currently open database anyway.

  Just open Access without opening the app and you'll have access to the ribbon.

Jim.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now