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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List box problem

Status
Not open for further replies.

vilmarie

Programmer
Feb 10, 2004
41
PR
How I can realize a serach in a list box. For example: I have a listbox with all the IDNO of my record. And I have a txtSearchByIdno. When I enter a IDNo that I need press the button Search in the list box appear this IDNO .
 
Something like this ?
For i = 0 To lstIdno.ListCount - 1
If lstIdno.ItemData(i) = txtSearchByIdno Then
lstIdno.ListIndex = i
Exit For
End If
Next i

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top