Is there any way either in VBA or with an API call to catch when a user closes Access (The Database Window). I cannot for the life of me find out how to do this.

My current solution/idea is to force the user to use command buttons by disabling menu items that close the DB Window.