You are here:

Using MS Access/disable close button and file menu exit


hi sir,
hope you are fine.
i want to ask you that is there any procedure to disable close button and file menu exit commad. (access 2007 and 2010)

waiting for your reply

mehr ramzan

No there isn't at this time. Disabling or capturing the application window Close button is a frequently requested enhancement (see

What you can do is load a form on startup and keep it loaded (though hidden). Then put code in the On close button of that form to run code when the app closes.

Using MS Access

All Answers

Answers by Expert:

Ask Experts




I can answer almost all types of questions relating to Microsoft Access usage and application design. My strengths are database and interface design.


I've been designing databases for over 25 years working with dBase, FoxPro, Approach and Access.

Author of Microsoft Office Access 2007 VBA
Techncial Editor for Special Edition Using Microsoft Access 2007 and Access 2007 Forms, Reports & Queries From Que Publishing

Brooklyn College BA

©2017 All rights reserved.