Here is a free utility that will do this for you.
Please note that it is USUALLY not necessary to repair a database unless it is in development. Once it goes into production, only compacting should be necessary.
Regardless, you can't really compact and repair a database in code if the database is 2000 or later. The datbase code and system information is stored in a BLOB instead of discrete records, as with earlier versions, so individuals items can't be rectified using DAO CompactDatabase, for example. Only the menu, switch (/Compact) or this utility (and others like it) will do the trick.
HTH
mmcdonal
|