Visibility

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

I have a text box on a form that i only want visible if
there is any content in it! is there anyway to do this?

Thanks

Simon
 
I would prefer to use the default Value rather than the Text Property since
the Text Property is only available when the Control has the Focus.

Try (being lazy):

Me.Text1.Visible = Len(Trim(Me.Text1 & "")) > 0
 
Back
Top