Hi,
Does anyone know how to.
In ms access 2003
I have a form in DataSht View
I have a text box (DisableControl) with either a Blank or "disable" in it.
I have a checkbox (Yes)
When the form loads or opens I want to disable the check boxes (Yes) that I have "Disable" in the DisableControl field.
I was trying this but doesn't work. It makes ALL of the checkboxes Disabled
Private Sub Form_Load()
If Me.DisableControl = "Disable" Then
Me.Yes.Enabled = False
Else Me.DisableControl = " " Then
Me.Yes.Enabled = True
End If
End Sub
I tried a couple of different ways but can't make it work.
Thanks BBryan
Does anyone know how to.
In ms access 2003
I have a form in DataSht View
I have a text box (DisableControl) with either a Blank or "disable" in it.
I have a checkbox (Yes)
When the form loads or opens I want to disable the check boxes (Yes) that I have "Disable" in the DisableControl field.
I was trying this but doesn't work. It makes ALL of the checkboxes Disabled
Private Sub Form_Load()
If Me.DisableControl = "Disable" Then
Me.Yes.Enabled = False
Else Me.DisableControl = " " Then
Me.Yes.Enabled = True
End If
End Sub
I tried a couple of different ways but can't make it work.
Thanks BBryan