Custom Search
|
|
Autoincrement Id Shows Lesser Access Table Records
To illustrate, consider you use an Access Database with a table containing 'x' number of records. When you view the Autoincrement Id for a new record, it shows the table with lesser records and a difference of 'y' records than the original. Trying to update the table gives an error message, as below: “Primary index is not unique” You use DbEngine.CompactDatabase code to try compacting the database, but it deletes the last 'y' records without displaying any error message. Cause Access database is corrupt. Using DbEngine.CompactDatabase for a corrupted database might cause data loss. Solution It is suggested to backup the database before applying any repair solution. To repair the corrupted Access database, you should use 'Compact and Repair' utility as follows: Access 2007: Close the database Start Microsoft Access and click 'Microsoft Office Button' Point to 'Manage' and click 'Compact and Repair Database' under 'Manage this database' section Browse to the affected database in 'Database to Compact From' dialog box and double-click it to start the repair process Access 2003 and earlier: Close the database Launch the application and click 'Tools' menu Point to 'Database Utilities' and click 'Compact and Repair Database' Browse to the corrupted database in Database to Compact From' dialog box Click 'Compact' and proceed as per the instructions Open the database after the repair process completes. If it still shows corruption symptoms, you need to apply third-party tools for repairing damaged Access databases. access repair software are powerful utilities, which are exclusively designed for fixing corruption errors with MDB files. These applications come integrated with interactive interface and allow for easy Access Database Repair in any instance of database corruption. Article Directory: http://www.articledashboard.com Colin Dolly is a self employed Internet entrepreneur and product reviewer. Our access recovery software completely recovers and repair access database components such as, views, tables, forms, queries, macros, etc. This access recovery application supports Access 2007, 2003, XP and 2000. |
|
© 2005-2011 Article Dashboard