D
Dominic H via AccessMonster.com
People - I got a great and correct response to my earlier query: Just to
refresh.. I have tables thus:
I have a table (called KEYWORDS TABLE) which looks like this:
WORD | onum | nnum |
SCHOOL | 55569 | 99999 |
ENGINEER | 77888 | 99887 |
etc
etc
BASKET | 66666 | 44444 |
And I have a another table (called KEYWORDS FILE) (in the same database) that
looks
like
VENDOR NAME | PostCode| and | so
forth|
St JOESPHS SCHOOL | SL1 8UU | OTHER | STUFF |
BREAk ENGINEER school LTD | TN1 8II | | |
I want to create a query that will look for all the rows in the keywords file
that
contain the words in field Word of keywords table.
I can get the values by using this query (from Michel Walsh)
SELECT [KEYWORDS FILE].*
FROM [KEYWORDS FILE]
WHERE (((Exists (select * from [Keywords table]
where [KEYWORDS FILE].[VENDOR NAME] LIKE "*" & [KEYWORDS
TABLE].[KEYWORD] & "*"))<>False));
What I (sorry my boss now wants) want to report is all the key words that
were found. So for example, the datasheet view would look like:
VENDOR NAME |POST CODE | STUFF |
KEYWORDS
ST Joesphs School | SL1 8UU | uhuh
| SCHOOL
BREAK ENGINEERING SCHOOL LTD | BR1 TTT | OOPS | SCHOOL,ENGINEER
Is this possible? If so.. please help!
Best regards
Dom
refresh.. I have tables thus:
I have a table (called KEYWORDS TABLE) which looks like this:
WORD | onum | nnum |
SCHOOL | 55569 | 99999 |
ENGINEER | 77888 | 99887 |
etc
etc
BASKET | 66666 | 44444 |
And I have a another table (called KEYWORDS FILE) (in the same database) that
looks
like
VENDOR NAME | PostCode| and | so
forth|
St JOESPHS SCHOOL | SL1 8UU | OTHER | STUFF |
BREAk ENGINEER school LTD | TN1 8II | | |
I want to create a query that will look for all the rows in the keywords file
that
contain the words in field Word of keywords table.
I can get the values by using this query (from Michel Walsh)
SELECT [KEYWORDS FILE].*
FROM [KEYWORDS FILE]
WHERE (((Exists (select * from [Keywords table]
where [KEYWORDS FILE].[VENDOR NAME] LIKE "*" & [KEYWORDS
TABLE].[KEYWORD] & "*"))<>False));
What I (sorry my boss now wants) want to report is all the key words that
were found. So for example, the datasheet view would look like:
VENDOR NAME |POST CODE | STUFF |
KEYWORDS
ST Joesphs School | SL1 8UU | uhuh
| SCHOOL
BREAK ENGINEERING SCHOOL LTD | BR1 TTT | OOPS | SCHOOL,ENGINEER
Is this possible? If so.. please help!
Best regards
Dom