I am working with an access DB, and have a simple web form that searches based on the SUBJECT field of the DB Table. But I am getting errors.
If I do a search, for example, the word "active" I get:
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Invalid use of '.', '!', or '()'. in query expression 'subject like '%active%'
The code I am using is:
<CFQUERY NAME="GETCAT" DATASOURCE="GLKB">
SELECT *
FROM KnowledgeBase
WHERE subject like '%#form.SUBJECT#%'
</CFQUERY>
Any suggestions?
If I do a search, for example, the word "active" I get:
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Invalid use of '.', '!', or '()'. in query expression 'subject like '%active%'
The code I am using is:
<CFQUERY NAME="GETCAT" DATASOURCE="GLKB">
SELECT *
FROM KnowledgeBase
WHERE subject like '%#form.SUBJECT#%'
</CFQUERY>
Any suggestions?