Selecting an item in a list box

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!
 
A

Alex Dybenko

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
 

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

Top