Me.NameOfYourControl.Enabled = Me.NameOfYourCheckbox
If Me.NameOfYourCheckbox = False Then
If Len(Me.NameOfYourControl & vbNullString) > 0 Then
Me.NameOfYourControl = Null
End If
End If
Can I have the check box toggel two different controlfields so when the box is checked one field is enabled and the other disabled and if i uncheck the box they both switch?
This is waht I have but it does not toggle the field (control2) that is supposed to be enabled when the check box is unselected:
Me.Control1Name.Enabled = Me.CheckboxName
If Me.CheckBoxName.Enabled = True Then
Me.Control2Name.Enabled = False
Else
Me.Control2Name.Enabled = True
End If