P
Playa
I have a message box with yes/no buttons. When the message box is displayed
and user clicks the Yes button I want the form to save and close, if the user
clicks the No button I want the form to stay open and not save. Here is the
code I have...
MsgBox "The Drawing Number CANNOT be changed after it is saved! Is the
Drawing Number Correct?" _
, vbYesNo, "Drawing Number Text Box"
If vbYes Then
..........................................
..........................................
End If
If vbNo Then
...........................................
...........................................
End If
As of right now no matter which button is pressed the form always gets saved
and closed. How do I properly code it so that when the different buttons are
pressed, I will get different results?
Thanks in advance.
and user clicks the Yes button I want the form to save and close, if the user
clicks the No button I want the form to stay open and not save. Here is the
code I have...
MsgBox "The Drawing Number CANNOT be changed after it is saved! Is the
Drawing Number Correct?" _
, vbYesNo, "Drawing Number Text Box"
If vbYes Then
..........................................
..........................................
End If
If vbNo Then
...........................................
...........................................
End If
As of right now no matter which button is pressed the form always gets saved
and closed. How do I properly code it so that when the different buttons are
pressed, I will get different results?
Thanks in advance.