dbTalk Databases Forums  

Help: Searching Field With Keyword Table

comp.database.ms-access comp.database.ms-access


Discuss Help: Searching Field With Keyword Table in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
pinballjim
 
Posts: n/a

Default Help: Searching Field With Keyword Table - 01-08-2004 , 09:49 AM






Hello everyone, I've been checking archives on this group for hours
and haven't found it yet.

What I want to do seems simple, I'm sure I'm overlooking something
obvious.

I've got one big table, and I want to pull all the records off that
table that have certain words in one of their fields - in other words,
run a set of keywords. The other problem is that I don't want
duplicates.

So let's say PetTable has four records in field "Pets"
1 - dog cat frog
2 - cat dog
3 - bird snake
4 - fish

And KeywordTable has three records in field "Keyword"
1 - dog
2 - cat
3 - fish

What I want to do is search PetTable with the records in KeywordTable.
The result I would want in this case is:
1 - dog cat frog
2 - cat dog
3 - fish

I've been banging my head against the wall with SQL statements like:

SELECT * From PetTable Where Pets = "*" & [KeywordTable].[Keyword] &
"*";

I would appreciate any help you guys can give me!

pinballjim at hotmail dot com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.