I have a form that I use as my Main Menu. When my users log on the Database window is hidden therefore closing the Main Menu form exits the database (as it should). However when I’m working on it the Database window is visible and when I close the Main Menu I don’t want the application to exit, only the form to close. Is there a way I could code it so that closing the form only exits the application when the Database window is NOT visible?