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

help with finding part of a string

Status
Not open for further replies.

Travis33

Programmer
Nov 20, 2000
31
0
0
US
I have a combo box that finds the record that I type in
this is the code I placed in the after update event

dim rs as object
set rs = me.recordset.clone
rs.findfirst "[Item number] = ' "&me! [combo2]& "'"
me.bookmark = rs.bookmark

This code works fine but I want to be able to type in part of the string and have it display alist of records that have
this substring in it.

can someone please help.

Thank You,

Travis
 
Where do you want to display the list? In the combo box? If you set the Auto Expand property of the combo box to Yes (the default), and use a Row Source that sorts the list entries, it pretty much does this anyway. The user can type a few characters, then drop down the combo box to see that it's positioned to the first entry that starts with the typed characters. Will that do?

Or maybe you mean you want to find records whose item numbers contain the typed characters embedded in them. In that case, you'll need a place to show the list. Using the combo box itself would be kind of awkward. What did you have in mind? Rick Sprague
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top