huh? well, here's a sample for you. (dont know how come it was an error!)
Private Sub Combo1_Click()
If Combo1.ListIndex = 1 Then
Text1.Enabled = True
Text2.Enabled = True
Else
Text1.Enabled = False
Text2.Enabled = False
End If
End Sub
Private Sub Form_Load()
Text1.Enabled = False
Text2.Enabled = False
With Combo1
.AddItem "Change Component"
.AddItem "Change IC"
End With
End Sub
First, ive created a combobox (Combo1) then 2 textboxes (Text1 & Text2)
Then in the Form_Load event, i add 2 items in the combobox, the "Change Component" and "Change IC" and set the 2 textboxes in disabled mode.
In the Combo1_Click event, since you decided that if we select the 2nd choice or item, which is Change IC, (ive explained why i use ListIndex =1 in my previous post) then enabled the 2 textboxes, otherwise, if the user select the first item, then it'll be disabled again.
Hope this will help u.
