G
Guest
I am attempting to validate what a user types into a text box and set a
prompt if no value is entered. This is the code that I have entered, however
when running the code the text box can be blank but no prompt occurs. The
code is in the Sub for a button called Close_Form
If Me.[EquipmentName] = Null Then
MsgBox "Please ensure that an Equipment Name is entered before saving
this record"
Cancel = True
End If
prompt if no value is entered. This is the code that I have entered, however
when running the code the text box can be blank but no prompt occurs. The
code is in the Sub for a button called Close_Form
If Me.[EquipmentName] = Null Then
MsgBox "Please ensure that an Equipment Name is entered before saving
this record"
Cancel = True
End If