Unselect Listbox Entry?

Shep

Shep
Local time
Today, 08:33
Joined
Dec 5, 2000
Messages
364
How can I completely clear a listbox?

User selects row
User clicks command button 'Clear'
Requery listbox
Selection user made previously is still highlighted

I've searched the archive and found something similar to this:

For intX = 0 To .lstContactPhone.ListCount
.lstContactPhone.Selected(intX) = False
Next intX

It goes a ways towards accomplishing what I need, but the row is still highlighted. Any ideas?

Many thanks.
 
Within your code put:

lstYourListBoxName = Null

Should work for you, works for me.
 
Well, it works for me too....imagine that. :)

I find that '= Empty' works also.

Many thanks.
 

Users who are viewing this thread

Back
Top Bottom