Move to specific row in listbox

C

Chuck

How can I move to a specific row in a listbox based on a unique value found
in one of the columns?

Right now I am using this code but the highlight moves from one row to the
next as it tries to find a match. Any better ways?

ListCount = me!mylist.ListCount
varItem = 0
Do Until varItem = ListCount
Me!mylist = Me!mylist.ItemData(varItem)
If Me!mylist.Column(0) = SearchValue Then Exit Do
varItem = varItem + 1
Loop


Thanks

Chuck
 

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