Hi
I have a form in which there is an "EXIT" command. I want that if the user hits the Close button of the form to execute the sub cmdexit_click
How can I do it?
thanks
Printable View
Hi
I have a form in which there is an "EXIT" command. I want that if the user hits the Close button of the form to execute the sub cmdexit_click
How can I do it?
thanks
use something within the
VB Code:
Private Sub Form_Terminate() End Sub
i think thats how you do it, its a while since ive used that
Code:Private Sub form_Unload()
Call cmdexit_click()
End Sub
Code:Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
cmdExit.Value = True
End Sub
thanks for you
You are welcome.
If you consider your question to be answered, please do not forget to mark the thread as resolved. :)