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

clearing all items from a combo box 1

Status
Not open for further replies.

compucop

Technical User
Sep 24, 2002
107
US
Anybody know how to clear all items from a combo box (set to value list) I've tried combobox.clear and cannot seem to get it to work, any suggestions ? Thanks
 
Try

me.cboCombo.rowsource=""

where cboCombo is the name of your form.

hth

Ben ----------------------------------------------
Ben O'Hara

"Where are all the stupid people from...
...And how'd they get so dumb?"
NoFX-The Decline
----------------------------------------------
 
Ben,
Thats it, it worked. Some how this message posted twice.. But your answer worked.. Don't know why I kept looking to use the .clear method, guess I thought utilizing .additem method I could use the clear. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top