Compact and Repair is a feature in Access settings that compacts and repairs Access databases. The compact on close option in the Access settings is checked when you want to automatically repair a database as it closes. In this tutorial, we will explain the process of how to automatically repair a database as it closes.