Observations
You're unable to open objects in the database. You notice the "#Deleted" value appearing in certain records of the database.
Possible Causes
The database is corrupted. There are three reasons that can cause a .mdb file corruption.
Interrupted Write Operation
This happens when Microsoft Access is not shut down properly. When the database is open and a data writing process is operational, an abnormal shutdown will cause the Jet database engine to mark the database as potentially corrupted. Cases of such commonly includes a network data collision and hard disks failure. To understand this, each time Jet commences a write operating, a flag is set to determine the start. When the operation completes, the flag is reseated. During an interruption, the flag remains set during the power off. So when the database powers up, it reports a corruption possibility when it reads the flag. To combat such problems, the compacting function is used to repair and restore the database. Using Microsoft Visual Basic for Applications in Access, the user and workstation that are responsible for this error can be traced back.
Faulty Networking Hardware
Sometimes a faulty networking hardware or hardware chain can cause a file to be corrupted when it processes the data incorrectly. The accumulated damaged data which is stored in the data gradually corrupts the database. This form of damage can range from mild to a substantially severe corruption depending on the hardware that processes the data. Typically, such corrupted data is unrecoverable and the faulty networking hardware has to be replaced to resolve the problem.
Opening and Saving the .mdb File in Another Program
This happens when the .mdb file is opened and saved in a different program. Most people think that a .mdb file contains readable information that is inserted in the database if they should open it with a text editor such as Microsoft Word or WordPad. However, data is written into the file with random series of characters. By saving opening and saving the file this way, it is most certainly that a corruption will occur.
Resolution
The Compact and Repair utility in Microsoft Access is a useful tool to optimizing and repairing Microsoft Access database files.
What Does Compacting Do?
Like the term suggests, compacting reclaims any unused space in a database that is previously occupied due to redundant objects and record deletions. Before you perform a compacting function, the database must be closed. A new database is then created and Jet copies only relevant objects from the old database over to the new.
Amidst the entire process, these are the specific actions that are taking place:
After that happen, the old database is erased and the new database is automatically renamed to the previous.
Repairing a database
Before you attempt to run the Compact and Repair utility on a database, you need to take note of the following:
Running the Compact and Repair Utility
To start off, follow these steps:
Should compacting fails, try to create a new database and import the objects one-by-one from the old database to the new one. The relationship could be recreated later.
This technique resolves problems with damaged system tables in the database. However, you can not import data access pages using the Import Wizard. Instead, open an existing data access page in the new database.
To do so, follow these steps:
If the damage occurs in a table, and the previous steps could not recover the error, try the following:
More Information
If you are unable to repair the database using the above steps, the database is probably damaged beyond repair. If this is the case, you should restore your last backup database. And take note that the compacting repair process only repairs the tables, the queries, and the indexes in the database, leaving damaged forms, reports, macros and modules intact.
This article applies only to:
| DATA RECOVERY DUE TO APPLICATION ERRORS | |
| Solutions to common application problems | |
Mail Recovery
Microsoft Office Data Recovery |
|
| DATA RECOVERY RESOURCES | |
| Do-it-yourself troubleshooting tips and knowledge on storage media types. | |
| SERVICES | |
| ADRC provides data recovery services for a wide range of storage media. | |