I'm using ms access 2003, i'm trying to delete the selected data that is the name of employee, from the combobox list when i click to delete button. i'm using this code:
Private Sub cmdDelete_Click() For I = 0 To combobox.ListCount - 1 If combobox.ListIndex(I) = combobox.Text Then combobox.RemoveItem (I) Exit For End If Next End Sub
but its not working can anybody tell me how to delete the selected items from combobox.
Thanks and Regards