Dave,
Try something like:
SELECT tblA.*, tblB.SearchFor
FROM tblA, tblB
WHERE tblA.SearchFieldA Like "*" & [tblB].[SearchFor] & "*"
This will identify all the records in tblA that match any of the key words
in the [SearchFor] field in table B. However, it will repeat rows if more
than one word in tblB matches the words in [SearchFieldA] of tblA. So, you
might want to do a distinct match, or Group by the ID field in a, and Count
the ID field in B, something like (not updateable):
SELECT Temp.CountOfID AS [Words found], tblSearchA.*
FROM (SELECT tblSearchA.ID, Count(tblSearchB.ID) AS CountOfID
FROM tblSearchA, tblSearchB
WHERE tblSearchA.SearchFieldA Like "*" & [tblSearchB].[SearchFor] & "*"
GROUP BY tblSearchA.ID) AS Temp INNER JOIN tblSearchA ON Temp.ID =
tblSearchA.ID;
This will
--
HTH
Dale
email address is invalid
Please reply to newsgroup only.