On Click enter text into a text object

How do you allow the user to enter text into a txt object when the user clicks a check box?

I want the user to be able to add a comment when they click a check box on a form.

The comment will later be added into a table that stores all the entries from the form.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
You can Disable and/or Lock the textbox until the user checks your box.

In the Current event of the form:

Me.YourTextbox.Enabled = False
Me.YourTextbox.Locked = True

In the Click event of your Checkbox:

Me.YourTextbox.Enabled = Me.YourCheckBox
Me.YourTextbox.Locked = Not Me.YourCheckbox

Of course, if the user checks and then UNchecks the checkbox, do you want to clear the text? If so, then you'd have to add an If statement to the Click event:

If Me.MyCheckbox = False Then
  Me.YourTextbox = ""
End If

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GPSPOWAuthor Commented:

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.