I need assistance regarding how to structure code for preventing
values being entered into three text fields.
Although the two of the three text fields can have values
concurrently, it is not permitted if one of the fields has a specific
value of "S", I've tried using the following code and variations to
same on the BeforeUpdate Event on the form, but so far no go. Any
assistance to resolve this issue will be appreciated. Thanks, Dalan
If Not IsNull(Me!Display1) And Not IsNull(Me!Display2) Then
If Me!Stock = "S" Then
MsgBox "You cannot have both a Display Case and a (S) Stock
code. You must choose one or the another.", vbExclamation
Me!Stock.SetFocus
Cancel = True
End If
End If