multi keyword search

D

don

I have a query which does a single keyword search across multiple columns.
anyonme have any code sample for being able to enter 2 or more keywords, and
query would return where Any or All of the terms were found.

Thanks!
 
D

don

I took a look, but nothing popped out relating to multiple keyword searching
across columns -
 
J

John W. Vinson/MVP

don said:
I have a query which does a single keyword search across multiple columns.
anyonme have any code sample for being able to enter 2 or more keywords,
and
query would return where Any or All of the terms were found.

Thanks!

The need to do this strongly suggests that your table is incorrectly
designed; do you have fields Keyword1, Keyword2 and Keyword3 or the like? If
so, consider a more normalized structure with TWO tables, in a one to many
relationship. The second table would have a link to the primary key of your
table and the keyword value.

Given your current structure you can use a criterion of

IN ("normalization", "relational", "database", "table")

on each of the keyword fields; put each criterion on a different Criteria
line in the grid to use OR logic so any of the keywords will be found in any
of the fields.
 

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

Top