Hi Guys,
This is my first post to this forum....I'm somewhat of a newbie to Access 2007.
Here is my question.
I am trying to implement a "search as you type" on a Combo Box that is on a form.
I have the following query attached to a Combox Box called "PartID":
SELECT DISTINCTROW Parts.*, Parts.Web_Category, Parts.PartDescription, Parts.UnitPrice, Parts.KitID, Parts.DefaultQty, Parts.Notes, Parts.PartName
FROM Parts
WHERE (((Parts.PartName) Like '*cam*') AND ((Parts.Inactive)=0))
ORDER BY Parts.PartName;
Note that I have added the "Like '*cam*'" condition so that only parts that contain the text "cam" anywhere in them will be displayed in the Combo box list. This works perfectly except that I want the user to be able to type the "cam" or any other string into the Combo box.
I have a question, can I somehow "parameterize" the "Like '*cam*'" condition part of the query so that it "takes" the text that I want to use to filter the records from the combo box that it is connected to???
Thanks again for your help and I'm sorry that I'm struggling with this...
Regards
Greg