D
Dave Lagergren
Code Snippet:
<% ' Now we open the Submission up to view it using the OrderNumber as the key
' Here we open the record and read in the fields
Dim SearchText, strQuery, strKey
SearchText = Request.QueryString("OrderNumber")
' OK, we get the variable Key passed ok, now let's read in the correct
record
Set objRS = Server.CreateObject("ADODB.Recordset")
Response.Write ">>>>>" & SearchText & "<<<<<"
objRS.Open "Select * from Results WHERE OrderNumber =" & 'SearchText',
objConn, 0, 1
Error:
Microsoft JET Database Engine error '80040e07'
Data type mismatch in criteria expression.
/logon/order_display.asp, line 48
Line 48 is the Open line.
<% ' Now we open the Submission up to view it using the OrderNumber as the key
' Here we open the record and read in the fields
Dim SearchText, strQuery, strKey
SearchText = Request.QueryString("OrderNumber")
' OK, we get the variable Key passed ok, now let's read in the correct
record
Set objRS = Server.CreateObject("ADODB.Recordset")
Response.Write ">>>>>" & SearchText & "<<<<<"
objRS.Open "Select * from Results WHERE OrderNumber =" & 'SearchText',
objConn, 0, 1
Error:
Microsoft JET Database Engine error '80040e07'
Data type mismatch in criteria expression.
/logon/order_display.asp, line 48
Line 48 is the Open line.