J
John Davis
I don't understand when I do (2), it will throw the error when I run the
ASP. (1) is working fine. Should I use a single quote between the string in
SQL statement in ASP?
(1) strSQL = "SELECT * FROM DATA WHERE id = " & strParm1
(2) strSQL = "SELECT * FROM DATA WHERE id = " & "'" & strParm1 & "'"
Error Type:
Microsoft JET Database Engine (0x80040E07)
Data type mismatch in criteria expression.
Please help. Thanks!
John
ASP. (1) is working fine. Should I use a single quote between the string in
SQL statement in ASP?
(1) strSQL = "SELECT * FROM DATA WHERE id = " & strParm1
(2) strSQL = "SELECT * FROM DATA WHERE id = " & "'" & strParm1 & "'"
Error Type:
Microsoft JET Database Engine (0x80040E07)
Data type mismatch in criteria expression.
Please help. Thanks!
John