By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,776 Members | 1,302 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,776 IT Pros & Developers. It's quick & easy.

Removing all ListBox items

100+
P: 553
Hi

How to delete/ remove all items in a "Value List" ListBox with a button click?


I have tried this:

Expand|Select|Wrap|Line Numbers
  1. For i = 0 To Me.List1.ListCount - 1
  2.       Me.List1.RemoveItem (i)
  3.    Next
  4.  
but no sucess.

Any suggestion please

Thanks
Qi
Jul 28 '08 #1
Share this Question
Share on Google+
2 Replies


nico5038
Expert 2.5K+
P: 3,072
Try:
Me.List1.Rowsource = ""

Nic;o)
Jul 28 '08 #2

100+
P: 553
Thanks Nico5038


Qi

Try:
Me.List1.Rowsource = ""

Nic;o)
Jul 28 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.