Search Memo Field

  • Thread starter Thread starter XMan
  • Start date Start date
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.
 
I can't believe it...It's "*" instead of "%"

SQL2K uses "%" and Access uses "*".....
 
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

Back
Top