I have a checkbox (LocationDataCheck), and a text control (LocationDataEntered). When LocationDataCheck is checked, I want LocationDataEntered to be disabled. I've put the following code into the OnClick of LocationDataCheck:
Private Sub LocationDataCheck_AfterUpdate()
If Me.[LocationDataCheck] = -1 Then
Me.[LocationDataEntered].Enabled = True
Else
Me.[LocationDataEntered].Enabled = False
End If
End Sub
I'm getting the error message "Method compile error". . .??
Private Sub LocationDataCheck_AfterUpdate()
If Me.[LocationDataCheck] = -1 Then
Me.[LocationDataEntered].Enabled = True
Else
Me.[LocationDataEntered].Enabled = False
End If
End Sub
I'm getting the error message "Method compile error". . .??