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!

searching a string Help

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
 
Do you have a form set up ready to display the records? If so, you can just set a filter on the form. The filter would be something like:

Me.Filter "[Item number] Like *' "&me! [combo2]& "*'"
Me.FilterOn = True

The use of the word Like and the asterisks will set the filter to find records where item number contains the value in the combobox.
Kathryn


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top