Go Back   Velocity Reviews > Newsgroups > Microsoft Certification
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Microsoft Certification - Access has detected corruption in this file

 
Thread Tools Search this Thread
Old 10-19-2009, 04:04 PM   #1
Default Access has detected corruption in this file


I face the below error message, when I attempt to mount an Access database
"Microsoft Access has detected corruption in this file. To try to repair the corruption, first make a backup copy of the file. Then, on the Tools menu, point to Database Utilities and click Compact and Repair Database. If you are currently trying to repair this corruption then you will need to recreate this file or restore it from a previous backup."

What can I do resolve the error?


Martincruise
Martincruise is offline   Reply With Quote
Old 10-20-2009, 06:08 AM   #2
Davidpoul
Junior Member
 
Join Date: Aug 2009
Posts: 3
Default Re: Access has detected corruption in this file
To resolve the above error message and access the data stored in the database, you will need to follow these steps:

1. Create a blank database = “C:\ Recover_db.mdb”
2. Close and exit.
3. Create another blank database and navigate to Modules Tab
4. Click on New and Paste the code provided below:

Dim db As DAO.Database

Set db = DAO.OpenDatabase("C:Corrupt_db.mdb")

Dim xtable As TableDef

For Each xtable In db.TableDefs

If Mid(xtable.Name, 1, 4) <> "MSys" Then

rSQL = "SELECT * INTO [" & xtable.Name & "] IN " & _

"'C:Recover_db.mdb'" & _

" FROM [" & xtable.Name & "]"

db.Execute rSQL

End If

Next xtable

MsgBox "Process Complete."

End Function

5. Go to Menu Tools, select References, and scroll down and Select "Microsoft DAO 3.6 Object Library"
6. Click OK
7. In Module Window Click on Recover_db() Function
8. Check database file names, after proper setup and press the F5 button
9. Tables and data from corrupt database is recovered to new database

Another way to resolve the problem (as stated in the error message) is by using an inbuilt repair utility known as “Compact and Repair.” However, if the inbuilt repair utility fails to repair the database, then you need to use advanced Access Repair application as Stellar Phoenix Access Recovery software.


Davidpoul
Davidpoul is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I cant access the MCP site T3M4N MCTS 1 03-18-2008 06:21 PM
Pix 515E Access List issue ally0000 Hardware 3 02-15-2008 01:34 PM
How To Access HTML elements in code behind??? nedums_b Software 1 02-07-2008 07:15 PM
Pix 515E Access ist issue ally0000 Hardware 0 01-12-2008 10:09 AM
Cannot access one URL Elke General Help Related Topics 1 12-02-2006 11:36 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46