Hi,
I am very new to access. My knowledge level is very low so far...
I am using Access 2007.
I have a bunch of records and i want to be able to do a Multiple keyword search on one particular column which is called keywords.
I have a single search query which works fine... this is the query:
SELECT Sea.ID, Sea.Category, Sea.Title, Sea.Author, Sea.Organisation, Sea.Date, Sea.Keywords, Sea.Reference
FROM Sea
WHERE (((Sea.Keywords) Like "*" & [Search by word:] & "*"));
This will find all records that have the word I am searching on and display the selected columns as well as the keywords column.
However in the keywords column each record has multiple keyword entries.. for example: (I had an image for this but i cant post it till i have ten posts ><)
ID Category Title Author Organisation Date Keywords
1 test test test test 1993 dog, cat, donkey, test Test
2 test test test test 2003 cat, budgie, rabbit
3 test test test test 2003 meow, rabbit, test, monkey
4 test test test test 2008 elephant, meow, donkey
5 test test test test 2009 giraffe, zebra, test, dolphin
I want to be able to use a multiple keyword search query where i enter say:
rabbit,test
And any record that is in the keyword column that has rabbit and/or test in it is returned.. So in the example above I would get records returned from my table:
ID Category Title Author Organisation Date Keywords
1 test test test test 1993 dog, cat, donkey, test Test
2 test test test test 2003 cat, budgie, rabbit
3 test test test test 2003 meow, rabbit, test, monkey
5 test test test test 2009 giraffe, zebra, test, dolphin
Record 4 would be omitted from the returned result as it contains neither Rabbit and/or test in the keyword column
Can anyone help me with a Where statement that would help me achieve this?
EDIT: Apologies... I cant get the column spacing to work so it represents it accurately but Keywords has the animal words... i hope you get my drift... oh i now see the sticky so i have attached a picture in zip form.. thanks.
I am very new to access. My knowledge level is very low so far...
I am using Access 2007.
I have a bunch of records and i want to be able to do a Multiple keyword search on one particular column which is called keywords.
I have a single search query which works fine... this is the query:
SELECT Sea.ID, Sea.Category, Sea.Title, Sea.Author, Sea.Organisation, Sea.Date, Sea.Keywords, Sea.Reference
FROM Sea
WHERE (((Sea.Keywords) Like "*" & [Search by word:] & "*"));
This will find all records that have the word I am searching on and display the selected columns as well as the keywords column.
However in the keywords column each record has multiple keyword entries.. for example: (I had an image for this but i cant post it till i have ten posts ><)
ID Category Title Author Organisation Date Keywords
1 test test test test 1993 dog, cat, donkey, test Test
2 test test test test 2003 cat, budgie, rabbit
3 test test test test 2003 meow, rabbit, test, monkey
4 test test test test 2008 elephant, meow, donkey
5 test test test test 2009 giraffe, zebra, test, dolphin
I want to be able to use a multiple keyword search query where i enter say:
rabbit,test
And any record that is in the keyword column that has rabbit and/or test in it is returned.. So in the example above I would get records returned from my table:
ID Category Title Author Organisation Date Keywords
1 test test test test 1993 dog, cat, donkey, test Test
2 test test test test 2003 cat, budgie, rabbit
3 test test test test 2003 meow, rabbit, test, monkey
5 test test test test 2009 giraffe, zebra, test, dolphin
Record 4 would be omitted from the returned result as it contains neither Rabbit and/or test in the keyword column
Can anyone help me with a Where statement that would help me achieve this?
EDIT: Apologies... I cant get the column spacing to work so it represents it accurately but Keywords has the animal words... i hope you get my drift... oh i now see the sticky so i have attached a picture in zip form.. thanks.
Attachments
Last edited: