ItemsSelected.Count on MouseUp and MouseMove Events

  • Thread starter Thread starter Ronald Dodge
  • Start date Start date
R

Ronald Dodge

Using Access 2002, SP2 on W2K Pro, SP4

Why does the ItemsSelected.Count on the listbox return 0 within the
listbox's MouseMove and MouseUp Events when there is at least 1 item
selected?
 
I just tried what you mention. I couldn't do it with the MouseMove event, because I was
using a message box that kept popping up with the count. But, I was able to reproduce it
with the MouseUp event if I used an Extended MultiSelect listbox. If I used a Simple
MultiSelect listbox it gave the correct answer. Just one more bug for the Extended
MultiSelect listbox, I guess. I've changed all of mine to Simple just because of items
such as this. Actually, depending on "how" you make the selections (using Ctrl or Shift
with the click) you may get 0, 1, or the correct answer when using an Extended MultiSelect
listbox.
 
Glad I'm not the only one to be finding that issue. The Shift variable
works as expected, just not the ItemsSelected as I'm using the Extended
MultiSelect. Guess this means I will just have to measure in twips to
control the selection and order of items as I'm attempting to create a drag
and drop type solution with Extended MultiSelect. What I did is use a label
on the form to return the information from all 3 mouse events, which is also
what I'm using to return error messages to users from the 3 different levels
of data validation (as the user types, the exiting of the field, and
updating of the record)
 
Back
Top