janerussel
MIS
I want to prompt user to save their data and exit.
I have an exit application button that prompts the user with a vbOK message box asking if they want to save and exit.
In addition, if the user clicks on the form's "X" to exit, I also want to prompt them with the same message box.
The problem is that if they click on the exit button, they get the message box twice because after they click OK on the messagebox it goes to the form UNLOAD event.
Is there a way to get around this.
I have an exit application button that prompts the user with a vbOK message box asking if they want to save and exit.
In addition, if the user clicks on the form's "X" to exit, I also want to prompt them with the same message box.
The problem is that if they click on the exit button, they get the message box twice because after they click OK on the messagebox it goes to the form UNLOAD event.
Is there a way to get around this.