Platform: Access 2000<br><br>Hi,<br><br>I am having difficulty figuring out the logic behind closing the forms in my database. I have just changed the structure of my database sothat it loads all forms in hidden mode on startup and then unhides<br>them when the user chooses to open them. When the user chooses to close a form I simply hide it and reset its data. This works fine until you want to close the application in which case the the cancelling of the forms' unload events, ends up cancelling the application close.<br><br>I thought that I might be able to work around this by loading a hidden dummy form on startup and then when the application calls its unload event setting a flag to true. This way when the other forms unload events are triggered they can check this flag and decide whether or<br>not to cancel unload. However, I cannot find a way for my dummy form to be the first form that is unloaded and therefore cannot insure that the flag is set. Furthermore, once one form has cancelled application shutdown, access does not even move onto the dummy form to set the<br>flag.<br><br>I thought that I'd remembered a way to do this in VB. The queryunload event, which passes the cause of the event as a constant. Is there away to obtain the functionality of this event in Access.<br><br>I also have the option of providing my own close buttons on forms and then simply hiding them when it is clicked, this way there is no code in their unload events. However, if possible I would like to stay with the original control box close buttons.<br><br>Please forgive the length of my submission, any ideas, or pointers in the right direction would be greatly appreciated.<br><br>Justin Carroll<br>