What is the "2"?? You do know there is a difference between a number 2 (no quotes) and a "text" number "2" (with quotes).
That is not the problem here. A check box is either TRUE or FALSE. In Access, FALSE = 0 and TRUE = -1. Actually TRUE = Not FALSE (ie anything other than 0 )
So your code should be:
Code:
Private Sub bxCheck_AfterUpdate()
If bxCheck = True Then
Field.Visible = False
Else
Field.Visible = True
End If
End Sub
or
Code:
Private Sub bxCheck_AfterUpdate()
If bxCheck Then
Field.Visible = False
Else
Field.Visible = True
End If
End Sub
or
Code:
Private Sub bxCheck_AfterUpdate()
Field.Visible = Not (Me.bxCheck)
End Sub