SQL query
I wonder why the following code gives me the following problem?
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
/showcv.asp, line 14
The code is :
<%
cv_id = request.querystring("ID")
set Conn = Server.CreateObject("ADODB.Connection")
Conn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.Mappath("cv.mdb") & ";"
Set rs = Server.CreateObject("ADODB.Recordset")
sqlQuery = "select * FROM cvtable WHERE ID ='" & cv_id & "'"
rs.open sqlQuery, Conn
%>
Thanks
|