J
James Hubers
I have a web site that uses a search box to find
information for the search page from 3 columns of a
database. (This search is generated in Front Page 2000
for me with me writing the select statement on my search
page.) This works find until you put an ' apostrophe in
the search box and hit enter. How can I write into the
SQL statement or what do I need to put on my page in ASP
that will add another ' to the string? How can I get
rid of the error below that I get on my ASP search
page. I have the select statement from my search below
also. Thank you in advance
SELECT * FROM Products
WHERE description like '%::T1::%'
OR type like '%::T1::%'
OR ItemNumber like '%::T1::%'
OR BrandName like '%::T1::%'
ORDER BY item ASC
Database Results Error
Description: [Microsoft][ODBC Microsoft Access Driver]
Syntax error in query expression 'description like '%'%'
OR type like '%'%' OR ItemNumber like '%'%' OR BrandName
like '%'%''.
Number: -2147217900 (0x80040E14)
Source: Microsoft OLE DB Provider for ODBC Drivers
James Hubers
(e-mail address removed)
information for the search page from 3 columns of a
database. (This search is generated in Front Page 2000
for me with me writing the select statement on my search
page.) This works find until you put an ' apostrophe in
the search box and hit enter. How can I write into the
SQL statement or what do I need to put on my page in ASP
that will add another ' to the string? How can I get
rid of the error below that I get on my ASP search
page. I have the select statement from my search below
also. Thank you in advance
SELECT * FROM Products
WHERE description like '%::T1::%'
OR type like '%::T1::%'
OR ItemNumber like '%::T1::%'
OR BrandName like '%::T1::%'
ORDER BY item ASC
Database Results Error
Description: [Microsoft][ODBC Microsoft Access Driver]
Syntax error in query expression 'description like '%'%'
OR type like '%'%' OR ItemNumber like '%'%' OR BrandName
like '%'%''.
Number: -2147217900 (0x80040E14)
Source: Microsoft OLE DB Provider for ODBC Drivers
James Hubers
(e-mail address removed)