Hi guys, i keep getting this error when trying to insert data into my database.
============================================================
Technical Information (for support personnel)
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
/Telmon/Intranet/PSS_Old2/InsertMaterial.asp, line 23
Browser Type:
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Page:
POST 27 bytes to /Telmon/Intranet/PSS_Old2/InsertMaterial.asp
POST Data:
Qty=1&Submit=Go&productID=1
Time:
Thursday, March 21, 2002, 2:38:43 PM
More information:
Microsoft Support
============================================================
Here's the code
============================================================
<%
Session("Qty" = Request("Qty"
Session("ProductID" = Request("ProductID"
Response.Write Session("ProductID"
JobCode = Session("JobCode"
qty = Session("Qty"
prodID = Session("ProductID"
strSQL = "INSERT INTO Orders (ProductID, JobCode, Quantity) VALUES ('" & prodID & "', '" & JobCode & "', '" & qty & "')"
Set cnMat = Server.CreateObject("ADODB.Connection"
cnMat.Open "DSN=PSS"
cnMat.Execute strSQL
Response.Redirect "DisplayQty.asp"
cnMat.Close
Set cnMat = Nothing
%>
============================================================
i'm trying to insert a quantity, the jobcode and the productID, they are all numbers. help. TIA
============================================================
Technical Information (for support personnel)
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
/Telmon/Intranet/PSS_Old2/InsertMaterial.asp, line 23
Browser Type:
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Page:
POST 27 bytes to /Telmon/Intranet/PSS_Old2/InsertMaterial.asp
POST Data:
Qty=1&Submit=Go&productID=1
Time:
Thursday, March 21, 2002, 2:38:43 PM
More information:
Microsoft Support
============================================================
Here's the code
============================================================
<%
Session("Qty" = Request("Qty"
Session("ProductID" = Request("ProductID"
Response.Write Session("ProductID"
JobCode = Session("JobCode"
qty = Session("Qty"
prodID = Session("ProductID"
strSQL = "INSERT INTO Orders (ProductID, JobCode, Quantity) VALUES ('" & prodID & "', '" & JobCode & "', '" & qty & "')"
Set cnMat = Server.CreateObject("ADODB.Connection"
cnMat.Open "DSN=PSS"
cnMat.Execute strSQL
Response.Redirect "DisplayQty.asp"
cnMat.Close
Set cnMat = Nothing
%>
============================================================
i'm trying to insert a quantity, the jobcode and the productID, they are all numbers. help. TIA