Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo box with Text Box

Status
Not open for further replies.

yakdogs

Programmer
Aug 13, 2002
40
US
I am not sure how to start this so maybe someone can give me some help. This is what I would like to do.

I have a combo box that when a specific item is picked that a text box pops up, and the user then needs to input the item name. Otherwise the text box is invisible.

Can any one help with this?

 
On the text box set the "Visible" property to No.
Create an event procedure on the combo box under On Lost Focus. The code should read as below.

If comboboxname.text = "Specific Item" Then
textboxname.visible = True
Else
textboxname.visible = False
End If

Thanks
Chris
 
Hi

You do not say how the 'picked item' which causes text box to show is identified so best I can say is

In the after update event of your combobox

If whatevercondition then
txtBox.Visible = true
Else
txtBox.Visible = False
End if Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top