keyword table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a keyword table with one field called "keyword". I would like to set
up a query to return all records from a second table ("search table") where
the field "description" contains one or more of the keywords. I have tried
using: Like ("*" & [keyword table]![keyword] & "*") but that returns every
record. Any suggestions?
 
Put the two tables in your query - not joined.
Add the following in Field list --
X: InStr(1,[YOURTABLE].[YOURFIELD],[keyword table]![keyword])
Use >1 as the criteria.
 
Thanks Karl! I changed the criteria to >=1 to catch the matches at the
beginning of the string, but otherwise works great.

KARL DEWEY said:
Put the two tables in your query - not joined.
Add the following in Field list --
X: InStr(1,[YOURTABLE].[YOURFIELD],[keyword table]![keyword])
Use >1 as the criteria.

Mike D said:
I have a keyword table with one field called "keyword". I would like to set
up a query to return all records from a second table ("search table") where
the field "description" contains one or more of the keywords. I have tried
using: Like ("*" & [] & "*") but that returns every
record. Any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DCount on multivalue fields 2
Form Troubles 1
Conditional formatting on a Keyword 1
keyword 2
multiple keyword search 4
On-not-in-list and more 1
keyword 2 2
Searching linked Documents 2

Back
Top