enabling a text box

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.
 
M

Manchery

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,,,
 
C

Chris Nebinger

Me.TextBox.Locked = not Check
Me.TextBox.Enabled = Check



Simpler method that I prefer.


Chris Nebinger.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top