I'm trying to code so that a textbox field is only enabled IF a certain checkbox is checked.
Using this code:
Private Sub checkbox_AfterUpdate()
If Me.[checkbox] = True Then
Me.[textbox].Enabled = True
Else
Me.[textbox].Enabled = False
End If
End Sub
When I click the checkbox - I get "runtime error 438 - object doesn't support this property or method".
What am I missing?
Using this code:
Private Sub checkbox_AfterUpdate()
If Me.[checkbox] = True Then
Me.[textbox].Enabled = True
Else
Me.[textbox].Enabled = False
End If
End Sub
When I click the checkbox - I get "runtime error 438 - object doesn't support this property or method".
What am I missing?