I
iamrdbrown
I am trying to use a query (q_OpSupSecurity) with a 'IsNull' to limit input
to a textbox. The query is based on a table where Operators =1 and
Supervisors = 2. The query is acting as a filter to remove values that
shouldn't be allowed into this textbox.
I get a "Microsoft Office Access can't find the field '|' referred to in
your expression" error when I try to run the code. How else can I accomplish
what I am trying to do with this code?
Private Sub txtUserID1_AfterUpdate()
If IsNull([q_OpSupSecurity]) Then
MsgBox "Invalid Operator ID. Please try it again.", vbExclamation,
"Operator ID Entry"""
txtUserID1 = 0
txtUserID1.SetFocus
End If
End Sub
Thanks in advance,
R Brown
to a textbox. The query is based on a table where Operators =1 and
Supervisors = 2. The query is acting as a filter to remove values that
shouldn't be allowed into this textbox.
I get a "Microsoft Office Access can't find the field '|' referred to in
your expression" error when I try to run the code. How else can I accomplish
what I am trying to do with this code?
Private Sub txtUserID1_AfterUpdate()
If IsNull([q_OpSupSecurity]) Then
MsgBox "Invalid Operator ID. Please try it again.", vbExclamation,
"Operator ID Entry"""
txtUserID1 = 0
txtUserID1.SetFocus
End If
End Sub
Thanks in advance,
R Brown