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!

Text box properties change based on combo box value 1

Status
Not open for further replies.

ErinB

MIS
Jul 31, 2001
12
US
Is there a way to deactivate a text box based on a value selected in a combo box? I have a combo box that asks for a "yes" or "no" value. If the value is "no", I want to deactivate the text box below it. Is this possible? Thank you!

 
I would use a check box. But let's use your combo.

Private Sub yourCombo_Change()
If me.cboYourcombo = "Yes" then
me.txtYourTextbox.visible = true
Else
me.txtYourTextbox.visible = false
End If

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top