I run a query when a user exits the application to remove his/her name from the "current users" table. I run this query from the Yes click on the confirm exit dialog. This all works fine. I run into trouble when the user closes the app from the "X" (close button) in the upper right hand corner of the Access window (which does not launch my confirm exit dialog). Where do I put the code to either: launch my confirm exit dialog from that "X" or run my query when the user exits using the "X". Your help is always appreciated. Thanks.



