I do not believe there is such a On Close event for the entire database. To get around it.. You could have a hidden/invisible form load on startup and then when the user goes to exit the database this form will have to go through OnClose/OnUnload events before the database is actually closed.