Itemdata in listbox

  • Thread starter Thread starter Norbert Meiss
  • Start date Start date
N

Norbert Meiss

I want to highlight the next item in a listbox (not multiselect). This works
fine with this line. The textfield contains the last ListIndex.

Me.lst1 = Me.lst1.ItemData(Me.txtListIndex + 1)

In somes rare cases the selection jumps to the entry before the last one and
not to the next. I have to mention that the first column contains a key which
is not unique. Could that be the reason for the strange behaviour?

TIA,
Norbert
 
Yes, that is probably the reason.


--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 
Back
Top