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

LIKE question in a combo box

Status
Not open for further replies.

molly

Technical User
Jul 17, 2000
219
US
I have an Unbound combo box used to look up a formula's prod family Name. I can type in a name EG Chili. and i will see things that say Chili. But when i mouse click on one item, nothing happens. No record is selected. And there are records.

i have the following command on the After Update line:

Private Sub CboProductFamilyNameFilter_AfterUpdate()

DoCmd.ApplyFilter , "[ProductFamilyName] Like '*" & Forms![7002frmNSBulkMain]![CboProductFamilyNameFilter] & "*'"
Me.CboProductFamilyNameFilter = Null

End Sub

I am trying to type part of the product families name EG CHILI and then see all my possible chili choices. The word Chili may be at the front or maybe in the middle of the name like Chili Dog or Red Chili. I would like to see anything with the word Chili.

Can you help me on this After Update?


FYI, My Row Source line is:

SELECT DISTINCT tblNSBulkMain.ProductFamilyName, tblNSBulkMain.ProductFamilyID FROM tblNSBulkMain GROUP BY tblNSBulkMain.ProductFamilyName, tblNSBulkMain.ProductFamilyID ORDER BY tblNSBulkMain.ProductFamilyName;

regards,
Molly
 
I also notice that if my product family name has a # sign, the after update will not get that record.

eg if I have ... Chili #123


molly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top