L
Lori
I have a form called frm_Vendor. I have multiple required fields for saving
a record. How can I enforce that all fields must be entered in order to
save a new record? I have the Required Property set to Yes at the table
level also.
I put the following code in the form BeforeUpdate event to give the user an
error message if they try to close the form without entering all required
fields(this one is for the Chain Suffix and Region fields) I have done the
same for each required field. When I try to close the form, I get a bunch of
error messages, that I click OK on and then the form closes. I know I am
missing something, any suggestions?
If IsNull(Me.Chain_Suffix) = True Then
MsgBox "Please select a Chain Suffix"
Cancel = True
End If
If IsNull(Me.Region_Code) = True Then
MsgBox "Please select a Region"
Cancel = True
End If
a record. How can I enforce that all fields must be entered in order to
save a new record? I have the Required Property set to Yes at the table
level also.
I put the following code in the form BeforeUpdate event to give the user an
error message if they try to close the form without entering all required
fields(this one is for the Chain Suffix and Region fields) I have done the
same for each required field. When I try to close the form, I get a bunch of
error messages, that I click OK on and then the form closes. I know I am
missing something, any suggestions?
If IsNull(Me.Chain_Suffix) = True Then
MsgBox "Please select a Chain Suffix"
Cancel = True
End If
If IsNull(Me.Region_Code) = True Then
MsgBox "Please select a Region"
Cancel = True
End If