Hi, can anyone help?
I've coded a link with an ID string. but I get the following error
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
This is the code
<%
strID = request.querystring("ID"
Dim oRS2
dim iRowCounter
Set oRS2=Server.CreateObject("adodb.Recordset"
sSQL="SELECT JobTable.Company"
sSQL=sSQL & " FROM JobTable"
sSQL=sSQL & " WHERE ID= " & "'" & ID & "'"
sSQL=sSQL & " ORDER BY Jobtable.Company;"
oRS2.open sSQL, "DSN=50on"
response.write"<table><tr>"
response.write "<td>" & oRS2 ("Company" & "</td></tr>"
oRS2.Close
set oRS2=Nothing
response.write "</table>"
%>
I've coded a link with an ID string. but I get the following error
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
This is the code
<%
strID = request.querystring("ID"
Dim oRS2
dim iRowCounter
Set oRS2=Server.CreateObject("adodb.Recordset"
sSQL="SELECT JobTable.Company"
sSQL=sSQL & " FROM JobTable"
sSQL=sSQL & " WHERE ID= " & "'" & ID & "'"
sSQL=sSQL & " ORDER BY Jobtable.Company;"
oRS2.open sSQL, "DSN=50on"
response.write"<table><tr>"
response.write "<td>" & oRS2 ("Company" & "</td></tr>"
oRS2.Close
set oRS2=Nothing
response.write "</table>"
%>