Hello there.. I just the next code for required fields in a form for entry data.
Private Sub Textbox_BeforeUpdate(Cancel As Integer)
If IsNull(Me![Textbox]) Then
MsgBox "Its obligatory that you type something in this field.", vbInformation, "obligatory."
Cancel = True
End If
End Sub
----
Now it wont let me do ANYTHING until I type something in the textbox..
My question is..
How can I do a button to cancel all and close the form, because when I try to close with a close button I made, it appears the obligatory message.
How can I do a CANCEL ALL AND CLOSE button?
Thanls in advance
Private Sub Textbox_BeforeUpdate(Cancel As Integer)
If IsNull(Me![Textbox]) Then
MsgBox "Its obligatory that you type something in this field.", vbInformation, "obligatory."
Cancel = True
End If
End Sub
----
Now it wont let me do ANYTHING until I type something in the textbox..
My question is..
How can I do a button to cancel all and close the form, because when I try to close with a close button I made, it appears the obligatory message.
How can I do a CANCEL ALL AND CLOSE button?
Thanls in advance