I receive the following error... doing a little Google searching it supposedly means the data being inserted is longer than the set value of the table field. I set the field to varchar(255) and it still gives an error no matter what. I added Trim() around the variable for giggles, and that did nothing. I commented out line 52, and got the same error message with lines 53 and 54... all the others work. Anyone have any ideas? I'm baffled... especially since line 51 (works), 52 (doesnt) and 53 (doesnt) are the exact same input and field types.
[ERROR MESSAGE]-------------------------
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
/add1.asp, line 52
[ERROR MESSAGE]-------------------------
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
/add1.asp, line 52
Code:
----------------------------------
Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.Open "cgmst", MySQLConn, 2, 2
Rs.AddNew
Rs("cgitno") = sItemNo
Rs("cgitds") = sItemDesc
Rs("cgcopy") = sItemCopy
Rs("cgoth1") = sItemOth1
Rs("cgoth2") = sItemOth2 <--- Line 52
Rs("cgoth3") = sItemOth3
Rs("cgbtry") = sItemBtry
Rs("cgages") = sItemAges
Rs("cgdmpr") = sItemPrDm
Rs("cgdmbx") = sItemBxDm
Rs("cgmnor") = sItemMnOr
Rs.Update
Rs.Close