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

how to delete values from combo box??? 1

Status
Not open for further replies.

notageek7

Technical User
Jan 23, 2004
54
US
I've looked through the other forums and FAQ with their suggestions not working....I'm not sure why. I've got a combo box that was filled by ..AddItem from an array. I need to empty, all the values, when a value from another combo box is chosen. I've tried the techniques below with only the value shown getting deleted, the other values are still there in the drop down list. It seems I tried all variations of what I found suggested. How can I empty all values from a combo box??? Any help would be appreciated.

combo1.value = ""
combo1.value = Null
combo1.value = Empty

combo1.text = ""
combo1.text = Null
combo1.text = Empty
 
Try:
[tt]me!combo1.rowsource=vbnullstring[/tt]

- or you could loop and use .removeitem, I guess

Roy-Vidar
 
RoyVidar, thanks again for your help!!!! Your first option worked great.

me!combo1.rowsource=vbnullstring
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top