You can try these two lines of code...<br><br>Repair:<br> DBEngine.RepairDatabase "C:\your database name"<br><br>Compact :<br> DBENgine.CompactDatabase olddb:="C:\????", newdb:="C:\????"<br><br>Note: you can not repair or compact a databse that is these codes are being called from or an open database. Sorry, but it's a DAO limitation.<br><br>Hope this would help YOU... <p>Mohamed Aly<br><a href=mailto:samara_79@hotmail.com>samara_79@hotmail.com</a><br><a href= > </a><br>