No, it’s not multiselect.
I tried the
Me!lstParts.SetFocus
Me!lstParts.ListIndex = 0
Which works fine when called from a cmd button, but not when calling it from an onclick event from another listbox. I get this error
“Run-time error ‘7777’
You’ve used the ListIndex property incorrectly.”...
I am trying to have a listbox programmatically unselect an item and then scroll all the way to the top.
I tried
Private Sub bringToTop()
Me.lstParts.Selected(1) = True
Me.lstParts.Selected(1) = False
End Sub
But it only works when I have it triggered from a cmd button. It does some...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.