I am building a small access application and would like to create a button that allows the user to repair and compact the database periodically. Ive tried using the DBEngine.RepairDatabase / DBEngine.CompactDatabase methods but they error out - saying the database must be closed. If this is the case, why are you able to repair and compact using Tools>Database Utilities>Repair(Compact) Database menu commands from an open database?<br><br>Thanks in advance<br><br>-jackerman