Visible Question

B

Bob Vance

Trying to make my list box visible if there is data in my text box, List box
set to No/Visible
If tbClient(Text Box) has data in it then lstClients.Visible = True
 
S

sandro

Bob Vance said:
Trying to make my list box visible if there is data in my text box, List
box set to No/Visible
If tbClient(Text Box) has data in it then lstClients.Visible = True
 
D

Dirk Goldgar

Bob Vance said:
Trying to make my list box visible if there is data in my text box, List
box set to No/Visible
If tbClient(Text Box) has data in it then lstClients.Visible = True

What have you tried?

"tbClient(Text Box) has data in it" is equivalent to "Len(Me.tbClient &
vbNullString) > 0". A concise way of expressing what you want is:

Me.lstClients.Visible = (Len(Me.tbClient & vbNullString) > 0)

You are probablygoing to have to execute that statement in the form's
Current event and in the AfterUpdate event of tbClient.
 

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