I would like to check a checkbox when I make a change to a corresponding text box. If the text box is empty, I'd like no check, and a I'd like to see a check if anything is in the text box. (Both text box and check box are bound.) I've tried the following code - and it will tick the box - but not "untick" it because apparently it doesn't know when the field is empty. Any suggestions?
Private Sub IndoorArenaDimensions_AfterUpdate()
If IndoorArenaDimensions.Value = "" Then
Me.IndoorArena.Value = 0
Else
Me.IndoorArena.Value = -1
End If
End Sub
Private Sub IndoorArenaDimensions_AfterUpdate()
If IndoorArenaDimensions.Value = "" Then
Me.IndoorArena.Value = 0
Else
Me.IndoorArena.Value = -1
End If
End Sub