david.paton
Registered User.
- Local time
- Yesterday, 16:26
- Joined
- Jun 26, 2013
- Messages
- 338
I want to enable a combo box upon selection of a checkbox. It is stored in the form called tblChild subform2. The name of the combo box is cboRelationship and the check box is chkRelated.
I am a novice at coding so I looked on the net for an answer and here is what I found and tried to adapt. Problem is that it didn't work either.
Private Sub chkRelated_CheckedChanged(sender As Object, e As EventArgs)
If chkRelated.Enabled = True Then
cboRelationship.Enabled = False
Else
cboRelationship.Enabled = True
End If
End Sub
Could someone help me work out this simple problem please?
I am a novice at coding so I looked on the net for an answer and here is what I found and tried to adapt. Problem is that it didn't work either.
Private Sub chkRelated_CheckedChanged(sender As Object, e As EventArgs)
If chkRelated.Enabled = True Then
cboRelationship.Enabled = False
Else
cboRelationship.Enabled = True
End If
End Sub
Could someone help me work out this simple problem please?