keyword table

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?
 
G

Guest

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.
 
G

Guest

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
Conditional formatting on a Keyword 1
Form Troubles 1
keyword 2
keyword 2 2
On-not-in-list and more 1
notinlist doubles with join table 2
Sort SQL 30

Top