I have check boxes that enable and disable text boxes on one of my forms. However, I am having trouble getting it to stick to being checked when I close the form.
For one of the check boxes, this is the code:
This is on the After Update for the check box and also in the On Current event for the Form itself. When I open the form, the default is not checked, so no text boxes are enabled (which is what I want). However, if I check this box and save and close the form, then open it again, its not checked anymore (but whatever was put in the text boxes are still there, just not enabled).
Can anyone help me with this?
For one of the check boxes, this is the code:
Code:
Private Sub extent_AfterUpdate()
If Me.extent = True Then
PP_SITE_CAP.Enabled = True
PP_DW_COMP.Enabled = True
Else
PP_SITE_CAP.Enabled = False
PP_DW_COMP.Enabled = False
End If
End Sub
This is on the After Update for the check box and also in the On Current event for the Form itself. When I open the form, the default is not checked, so no text boxes are enabled (which is what I want). However, if I check this box and save and close the form, then open it again, its not checked anymore (but whatever was put in the text boxes are still there, just not enabled).
Can anyone help me with this?