Query Problems

R

Roshawn Dawson

Hi,

I have a table in an Access database that contains nearly 2500 rows. I
am trying to locate rows by the keywords field in the table. My query
looks like this:

SELECT TOP 10 Books.ISBN, Books.Title
FROM Books
WHERE Books.Keywords = [Enter a keyword to search]
ORDER BY Books.Title DESC;

For reasons unknown to me, this query doesn't work at all. No rows are
returned. Can someone tell what I'm doing wrong?

Thanks
Roshawn
 
A

Allen Browne

Does the Keywords field contains multiple keywords?

If so, you will need:

SELECT TOP 10 Books.ISBN, Books.Title
FROM Books
WHERE Books.Keywords Like "*" & [Enter a keyword to search] & "*"
ORDER BY Books.Title DESC;
 

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