G
Guest
Hi All,
I'm trying to write code that will so and hide a combo box depending on the
answer you select in another combo box.
Here's what i have so far:
Private Sub Item_AfterUpdate()
On Error Resume Next
Select Case Item.Visible
Case "Computer"
Computer_Name.Visible = True
Case "Projector"
Computer_Name.Visible = False
Case "Monitor"
Computer_Name.Visible = False
Case "Smartboard"
Computer_Name.Visible = False
Case "Sound System"
Computer_Name.Visible = False
Case "Camera"
Computer_Name.Visible = False
End Select
End Sub
I want it to only show the other combo box when you select "Computer" in the
other combo box. The code i've wrote does show and hide the combo box but it
does this if you select any option.
Hope this makes sense.
Thank You
I'm trying to write code that will so and hide a combo box depending on the
answer you select in another combo box.
Here's what i have so far:
Private Sub Item_AfterUpdate()
On Error Resume Next
Select Case Item.Visible
Case "Computer"
Computer_Name.Visible = True
Case "Projector"
Computer_Name.Visible = False
Case "Monitor"
Computer_Name.Visible = False
Case "Smartboard"
Computer_Name.Visible = False
Case "Sound System"
Computer_Name.Visible = False
Case "Camera"
Computer_Name.Visible = False
End Select
End Sub
I want it to only show the other combo box when you select "Computer" in the
other combo box. The code i've wrote does show and hide the combo box but it
does this if you select any option.
Hope this makes sense.
Thank You