I have a checkbox CRShtnvsp and if checked, I have VBA code to enable additional checkboxes. This checkbox is enabled/disabled via another checkbox CRShtn. That sequence works.
I want CRShtnvsp to enable additional checkboxes.
VBA for both CRShtnvsp and CRShtn below.
This code works:
Private Sub CRShtn_AfterUpdate()
If CRShtn = True Then
CRShtnvsp.Enabled = True
Else
CRShtnvsp.Enabled = False
End if
End Sub
This code does not work:
Private Sub CRShtnvsp_AfterUpdate()
If CRShtnvsp = True Then
CRShtn_vaso_phen.Enabled = True
Else
CRShtn_vaso_phen.Enabled = False
End if
End Sub
All checkboxes are set to Enabled = No in the property sheet so they are disabled until prior checkboxes or comboboxes on my form are changed using AfterUpdate() or Form_Current().
CRShtn_vaso_phen.Enabled = CRShtnvspCRShtnvspcheckbox. In the "After Update" property box, make sure "[Event Procedure]" is selected and then press the button labelled with 3 dots. You should be at your existing procedure. And I think should be enough to remind Access it exists.