Selecting an item in a list box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a list box (cvlistbox) with two columns, a bound "index_persons"
column and an unbound "name" column.

I want to select an item in the listbox using a value for the "index_persons".

I could use

cvlistbox.Selected(cvrow) = True

if I had the listbox row number, but I don't: I only have the values for a
column in the row.

How do I select an item in the list box? Thanks in advance for your help!
 
if listbox is not multiselect one - then just write:
me.cvlistbox=index_persons
if multiselect - then you have to go through all items and check it values,
if it is equal to index_persons - then make it selected=true
 
Back
Top