clearing a list box

  • Thread starter Thread starter Andy G
  • Start date Start date
A

Andy G

I have a list box that is set to simple multi select. I have a clear button
on the form and need to clear off any selections a user might have
previously made to this list box. How do I clear the list box?

Thanks.
 
Sorry, I should try some stuff before asking a question....this is what
worked.

intItems = lstTrioProg.ListCount - 1
For intCtr = 0 To intItems
lstTrioProg.Selected(intCtr) = False
Next intCtr
 
Me.lstTrioProg.Requery
will also do it.

Andy G said:
Sorry, I should try some stuff before asking a question....this is what
worked.

intItems = lstTrioProg.ListCount - 1
For intCtr = 0 To intItems
lstTrioProg.Selected(intCtr) = False
Next intCtr
 
Back
Top