Length of field problem.. I think '80040e21

Author Message
jer1024

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 9/11/2009
  • Status: offline
Length of field problem.. I think '80040e21 Friday, September 11, 2009 7:19 AM (permalink)
0
If I try to add text to a field that is more than about 200 chars or so I get the following Error:
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.

The field is set to 'Memo'  so what gives?

Public Function DBaddEntry(strFields,strValue,strTable)
Dim qry
    Set rsAdd = Server.CreateObject("adodb.recordset")
    qry = "SELECT " & strFields & " FROM " & strTable
    'Response.write(oConn & "<br />" & qry) ' debug trace output
    rsAdd.open qry, oConn, 3, 3
    rsAdd.addnew
    arrFields = Split(strFields,",")
    arrValues = Split(strValue,",")
    lenFields = UBound(arrFields)
   
    For i = 0 to lenFields
    'response.write(arrFields(i) & "=" & arrValues(i) & "<br />") ' debug trace output
        rsAdd(arrFields(i)) = arrValues(i)
    Next
    rsAdd.update
    Set rsAdd = oConn.Execute( "SELECT @@IDENTITY" )
    newID = rsAdd(0)
    rsAdd.close                                                                          ' Close the object and clean up
    Set rsAdd = Nothing     
    DBaddEntry = True
End Function





 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9