Multiselect list box Count problem

  • Thread starter Thread starter ChrisK
  • Start date Start date
C

ChrisK

Dear all,

I'm seeing something strange with the .Count property of a multiselect list
box in Access 2000. When I first open the form and use the following
statement:

If Me.lstQuoteComponent.ItemsSelected.Count = 0 Then

This property always evaluates to 0 no matter how many items are actually
selected. If I run the code through again, it correctly shows the number of
items selected.

CK
 
Hi Chris,

You say "when I first open the form". Could it be that the code is
running before the listbox has finished loading or before the items have
been selected?
 
Back
Top