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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ComboBox Hide

Status
Not open for further replies.

watty215

Programmer
Aug 6, 2002
9
GB
I have two combo's in a form i want to hide the second box when a certain value is selected in the first box and show the combo again when another value is selected.
 
It's ok i have done it for anybody who would like to see the code here it is.

Sub Combo1_onChange()
If document.selection.combo1.value = "Hello" Then
document.selection.combo2.style.display = "none"
Else if document.selection.combo1.value = "Goodbye" Then
document.selection.combo2.style.display = "none"
Else if document.selection.combo1.value = "Help" Then
document.selection.combo2.style.display = ""
End if
End if
End if
End sub

 
You can hide it like this

FormName.ComboBoxName.style.visibility = "Hidden"

To get it back

FormName.ComboBoxName.Style.Visibility = "Visible"

Hope that's what you were looking for. Rob
Just my $.02.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top