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
 
Hi

Have not tried this but what about simply CboMyCombo.RowSource = ""
cboMyCombo.Requery Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Ken, this message posted twice somehow. That was it. I can't thank you guy enough. Thought only about the .clear method because i was using loop and additem. Did not even think about utilizing the rowsource. Thanks again. David.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top