Visibility

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
 
V

Van T. Dinh

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
 

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