M
Melissa
I have the following code in a form's BeforeUpdate event:
If <Condition> Then
MsgBox ........
Cancel = True
Call Form_Unload(True)
End If
And this code for the form's Unload event:
Public Sub Form_Unload(Cancel As Integer)
Cancel = True
End Sub
1. Why doesn't this code prevent the form from closing when <condition> is
true?
2. Do I need to put Cancel = True in the Unload event since the Call
statement specifies Cancel as True?
Thanks!
Melissa
If <Condition> Then
MsgBox ........
Cancel = True
Call Form_Unload(True)
End If
And this code for the form's Unload event:
Public Sub Form_Unload(Cancel As Integer)
Cancel = True
End Sub
1. Why doesn't this code prevent the form from closing when <condition> is
true?
2. Do I need to put Cancel = True in the Unload event since the Call
statement specifies Cancel as True?
Thanks!
Melissa