[Last Call] Learn how to a build a cloud-first strategyRegister Now


How query using keywork criteria

Posted on 2014-08-15
Medium Priority
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?
Question by:SteveL13
LVL 120

Accepted Solution

Rey Obrero (Capricorn1) earned 2000 total points
ID: 40263079
check carefully the entries in your table. (space,spelling etc...)

your query should return both records
LVL 40

Expert Comment

ID: 40263092
Look at sample. Criteria like yours

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question