Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2004

    Unanswered: Find Item in a Listbox - then Select the Found Item

    I am using the code below to find a value in a listbox

    If FindItemInList(Me.lstAreas, "Warehouse") Then

    msgbox "test"

    End If

    this works and displays a message box since "Warehouse" is in the listbox

    how can I set focus to the listbox, and select the "Warehouse" entry?

    Thanks! - AB

  2. #2
    Join Date
    Jul 2004
    South Dakota
    I'm not really sure what your FindItemInList function returns. What you need to do is find the ListIndex of the item that you are looking for. Then you need to set the Selected property of that item to true.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts