How to clear up listbox in VBA 6.5

AccessFreak

Registered User.
Local time
Today, 17:54
Joined
Feb 19, 2009
Messages
69
I tried.

listbox1.clear

But it does not work:confused:

Can someone help.. thanks
 
I assume you have a List Box control with a source set to 'Value List'. If you do, then you can iterate through the items and remove them.

Code:
While ListBox1.ListCount > 0
ListBox1.RemoveItem (0)
Wend

Or you can simply set the Row Source to a null string.

Code:
Me.List4.RowSource = ""
 

Users who are viewing this thread

Back
Top Bottom