Hi. I’m very new to Access and have a question which I’m sure is easy to answer, but which I just can’t work out at all. I’ve designed a form in which there’s a check box for a field called ‘other’ and a text box for a field called ‘other_specify’. What I want to do is have the other_specify box greyed out until the ‘other’ check box is ticked.
I’ve had a play around and wrote the following event procedure for the after update option of the check box:
Private Sub Other_check_box_AfterUpdate()
If Other_check_box.Value = True Then
Other_specify_text_box.Enabled = True
Else
Other_specify_text_box.Enabled = False
Other_specify_text_box = Null
End If
End Sub
That works to some extent, but it makes the change for every record on the form, i.e. if I tick the check box when dealing with record one the text box becomes enabled, but when I go to the next record although the check box isn’t ticked, the text box is enabled. I’ve tried to work out what’s going wrong, and it was fun to begin with, but now it’s just annoying as I’m getting nowhere slowly. Any one got any ideas? Thanks
I’ve had a play around and wrote the following event procedure for the after update option of the check box:
Private Sub Other_check_box_AfterUpdate()
If Other_check_box.Value = True Then
Other_specify_text_box.Enabled = True
Else
Other_specify_text_box.Enabled = False
Other_specify_text_box = Null
End If
End Sub
That works to some extent, but it makes the change for every record on the form, i.e. if I tick the check box when dealing with record one the text box becomes enabled, but when I go to the next record although the check box isn’t ticked, the text box is enabled. I’ve tried to work out what’s going wrong, and it was fun to begin with, but now it’s just annoying as I’m getting nowhere slowly. Any one got any ideas? Thanks