We help IT Professionals succeed at work.

How query using keywork criteria

SteveL13
SteveL13 asked
on
237 Views
Last Modified: 2014-08-15
I have a table that has a field named "Keywords".  In the table are two records so far.  In the keyword field one record has "Baseball".  The other record has "Football Baseball".  Then I am designing a query and the criteria is:

Like "*" & [Forms]![frmSearchByKeyword]![txtKeyword] & "*"

And I have a "Search" form with a field named txtKeyword.

But for some reason when I enter "Baseball" in the text field and run the query I get only the record that has "Football Baseball".   The query does not return the record ALSO that has "Baseball".

What is wrong with this?
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT

Commented:
Look at sample. Criteria like yours
DBSearch.accdb
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.