Textbox

F

Froto

I have a textbox on a form which users enter additional
information. What I would like to do is once a user
enters text in the textbox it would place a checkmark in
a checkbox located on form.

Thanks for the help
 
W

Wayne Morgan

In the AfterUpdate event of the textbox try something like

If Nz(Me.txtMyTextbox, "")<>"" Then
Me.chkMyCheckbox = True
Else
Me.chkMyCheckbox = False
End If

The above can be shortened but is a little harder to read.

Me.chkMyCheckbox = (Nz(Me.txtMytextbox,"")<>"")

The right side of the equal sign will return True or False and set this
value in the checkbox.
 

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