Can I use an IsNull statement to check more than one control? Prior to closing and saving a customer order entry form I need to check to see if about 6 fields are not null.
Can I create a statement that checks more than one field (see example below) or must I create an If/Then statement for each on individually?
Will either of these statements work:
If IsNull(cboSource)or(cboRep)or(cboItem)or(cboQty) Then
MsgBox "Required fields must be entered before record
can be saved."
Exit Sub
End If
If IsNull(cboSource)cboRep)cboItem)cboQty) Then
MsgBox "Required fields must be entered before record
can be saved."
Exit Sub
End If
Thanks for your help,
KerryL
Can I create a statement that checks more than one field (see example below) or must I create an If/Then statement for each on individually?
Will either of these statements work:
If IsNull(cboSource)or(cboRep)or(cboItem)or(cboQty) Then
MsgBox "Required fields must be entered before record
can be saved."
Exit Sub
End If
If IsNull(cboSource)cboRep)cboItem)cboQty) Then
MsgBox "Required fields must be entered before record
can be saved."
Exit Sub
End If
Thanks for your help,
KerryL