Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jknuep

    Access VBA code listbox to deselect and bring to the top

    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.”...
  2. jknuep

    Access VBA code listbox to deselect and bring to the top

    That doesn't seem to do anything... The selected row remains selected.
  3. jknuep

    Access VBA code listbox to deselect and bring to the top

    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...

Part and Inventory Search

Back
Top