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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top