terawebwriter
Programmer
Can someone help me with this one please. Whatever I change the fields to, it wont work. ASP with MS Access Database. ReceivedProductsID is the Autonumber in MS Access Database where I create a link to edit the record #.
Error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
/Updates/UpdateHardware.asp, line 17
The ASP page sending the request. The page is basically a list of all records in the database with a link to ReceivedProductsID to click and edit that record. Code Below:
<%
Set RS = Server.CreateObject("ADODB.Recordset"
SqlString = "SELECT ReceivedProductsID, ProductName, UnitsOrdered, PO, Arrival, ReceivedBy, SerialNumber, Department, Requestor"
SqlString = SqlString & " FROM ReceivedProducts"
Set RS = objConn.Execute ( SqlString )
%>
The ASP page receiving the request to update the record:
<%
recnum = Request.QueryString("recnum"
recnum = Trim(recnum)
Response.write (recnum)
sqlString2 = "SELECT *"
sqlString2 = sqlString2 & " FROM ReceivedProducts"
sqlString2 = sqlString2 & " WHERE ReceivedProductsID = '" & recnum & "'"
SET RS2 = objConn.Execute( sqlString2 )
%>
If I change this line --sqlString2 = sqlString2 & " WHERE ReceivedProductsID = '" & recnum & "'"-- to ReceivedProductsID = 6", it will return that record only no matter which link you click on, which is normal, so it looks like I have to specify the ID in order for it to work. ANY HELP I WOULD APPRECIATE VERY MUCH...
Error:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
/Updates/UpdateHardware.asp, line 17
The ASP page sending the request. The page is basically a list of all records in the database with a link to ReceivedProductsID to click and edit that record. Code Below:
<%
Set RS = Server.CreateObject("ADODB.Recordset"
SqlString = "SELECT ReceivedProductsID, ProductName, UnitsOrdered, PO, Arrival, ReceivedBy, SerialNumber, Department, Requestor"
SqlString = SqlString & " FROM ReceivedProducts"
Set RS = objConn.Execute ( SqlString )
%>
The ASP page receiving the request to update the record:
<%
recnum = Request.QueryString("recnum"
recnum = Trim(recnum)
Response.write (recnum)
sqlString2 = "SELECT *"
sqlString2 = sqlString2 & " FROM ReceivedProducts"
sqlString2 = sqlString2 & " WHERE ReceivedProductsID = '" & recnum & "'"
SET RS2 = objConn.Execute( sqlString2 )
%>
If I change this line --sqlString2 = sqlString2 & " WHERE ReceivedProductsID = '" & recnum & "'"-- to ReceivedProductsID = 6", it will return that record only no matter which link you click on, which is normal, so it looks like I have to specify the ID in order for it to work. ANY HELP I WOULD APPRECIATE VERY MUCH...