Hi All
could anyone please help me ow to emove the selected item from a combobox..i used varioua ways but it doesn't work e.g
1. ComboBox1.RemoveItem ComboBox1.ListIndex
2. Private Sub cmdDelete_Click()
'For I = 0 To ComboBox1.ListCount - 1
'If ComboBox1.ListIndex(I) = Val(ComboBox1.Text) Then
' ComboBox1.RemoveItem (ComboBox1.ListIndex)
'Exit For
'End If
'Next
3. ComboBox1.RemoveItem (ComboBox1.ListIndex)
out of the above methods ,noone works...
please help me resolve it
Regards
Aman
could anyone please help me ow to emove the selected item from a combobox..i used varioua ways but it doesn't work e.g
1. ComboBox1.RemoveItem ComboBox1.ListIndex
2. Private Sub cmdDelete_Click()
'For I = 0 To ComboBox1.ListCount - 1
'If ComboBox1.ListIndex(I) = Val(ComboBox1.Text) Then
' ComboBox1.RemoveItem (ComboBox1.ListIndex)
'Exit For
'End If
'Next
3. ComboBox1.RemoveItem (ComboBox1.ListIndex)
out of the above methods ,noone works...
please help me resolve it
Regards
Aman