Search Memo Field

X

XMan

I have this SQL statement and it's not working for memo field DESCRIPTION:

SELECT DESCRIPTION FROM COMPLAINTS WHERE DESCRIPTION LIKE '%accident%';

Do I need to convert memo field to VARCHAR or other functions to make it
searchable? TIA.
 
D

Dale Fye

In Access you need to use the asterisk instead of the percent.

SELECT Description
FROM Complaints
WHERE Description Like "*accident*"

--
HTH

Dale Fye


I have this SQL statement and it's not working for memo field
DESCRIPTION:

SELECT DESCRIPTION FROM COMPLAINTS WHERE DESCRIPTION LIKE
'%accident%';

Do I need to convert memo field to VARCHAR or other functions to make
it
searchable? TIA.
 

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