enabling a text box

  • Thread starter Thread starter Joanne
  • Start date Start date
J

Joanne

I would like to write some code that would enable a text
box only if the previous checkbox is checked. I'm having
a little trouble with it. All help would be appreciated.
 
Hi, I hope the following will work:

If Check.Value = True Then
Me.textbox.Locked = False
Me.textbox.Enabled = True
Else
Me.textbox.Enabled = False
Me.textbox.Locked = True
End If

appreciate Your response ([email protected]), if this
is ok for you or not,,,
 
Me.TextBox.Locked = not Check
Me.TextBox.Enabled = Check



Simpler method that I prefer.


Chris Nebinger.
 
Back
Top