Hello,
I want to disable some combos and checkboxes whenever my first checkbox (NP_clausal) is selected. I've placed the code below in the After Update event of the NP_clausal checkbox and it works. I tried to paste it in the On Current event of the Form so that whenever I go back to the records I've already analyzed, it remembers that the controls are supposed to be disabled if NP_clausal is checked - this method worked when I tried to disable other controls based on the selection of a combo box, but it doesn't work here, and I don't know what to do anymore :banghead:. Can you help me?
Here's the code:
Thanks in advance!
Dafne
I want to disable some combos and checkboxes whenever my first checkbox (NP_clausal) is selected. I've placed the code below in the After Update event of the NP_clausal checkbox and it works. I tried to paste it in the On Current event of the Form so that whenever I go back to the records I've already analyzed, it remembers that the controls are supposed to be disabled if NP_clausal is checked - this method worked when I tried to disable other controls based on the selection of a combo box, but it doesn't work here, and I don't know what to do anymore :banghead:. Can you help me?
Here's the code:
Code:
' Disable semantic features of NP if NP_clausal is True
If Me.checkNP_clausal.Value = "-1" Then
Me.cboNP_number.Enabled = False
Me.checkNP_animate.Enabled = False
Me.checkNP_referential_relation_obvious = False
Me.checkNP_active.Enabled = False
Me.checkNP_definite.Enabled = False
Me.cboNP_specificity.Enabled = False
Me.cboNP_collectiveness.Enabled = False
Me.cboNP_concreteness.Enabled = False
Me.cboVERB_agreement_NP.Enabled = False
Else
Me.cboNP_number.Enabled = True
Me.checkNP_animate.Enabled = True
Me.checkNP_referential_relation_obvious = True
Me.checkNP_active.Enabled = True
Me.checkNP_definite.Enabled = True
Me.cboNP_specificity.Enabled = True
Me.cboNP_collectiveness.Enabled = True
Me.cboNP_concreteness.Enabled = True
Me.cboVERB_agreement_NP.Enabled = True
End If
Dafne