Textbox

  • Thread starter Thread starter Froto
  • Start date Start date
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
 
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.
 
Back
Top