| | |
Syntax Error (input character)
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
Hello
Every time i input the character ' and % in the textfield it generate an error in my query.
The error:
Syntax error in query expression 'Title LIKE '%' %%';'.
My code:
tnx in advance..
Every time i input the character ' and % in the textfield it generate an error in my query.
The error:
Syntax error in query expression 'Title LIKE '%' %%';'.
My code:
asp Syntax (Toggle Plain Text)
adoList.Open "SELECT * FROM qryOPAC WHERE Title LIKE '%" & varExp & "%';",CoNN,3,3
tnx in advance..
Kenneth
"Better Than Yesterday"
"Better Than Yesterday"
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
The reason why it is coming up this way is that varexp is set to this:
check what varexp's value is and make sure you have NO quotes in there whatsoever, as well as % signs.
ASP Syntax (Toggle Plain Text)
' %
check what varexp's value is and make sure you have NO quotes in there whatsoever, as well as % signs.
![]() |
Similar Threads
- how to run both as applet and or application (Java)
- memory management in wndows 2000 (Windows NT / 2000 / XP)
- PHP Error in searching (Help!) (PHP)
- Warning: Unexpected character in input: (PHP)
- help with some error codes please. (C)
- Help me understand the syntax, Urgent (C++)
- String maniputlation runtime error (C++)
- Finding length (Java)
- IE Syntax Error and Can“t browse some sites (Viruses, Spyware and other Nasties)
- Help Writing Fuction to Read Fractions From User (C++)
Other Threads in the ASP Forum
- Previous Thread: Dynamic XML
- Next Thread: ASP Virgin: Link Combo to Gridview
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7






