How do properly code a textarea of a form so I won't get this error: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value"?

Posted on 2008-06-13
Last Modified: 2010-04-21
I have a form page that contains several text boxes. Two of the text boxes are rather large (textarea). If I put too much text in the large text boxes, I receive this error: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value.  /SEARCHES/add_to_ArtDepartmentEntry.asp, line 39.

Line 39 is this line: "rsAddComments.Fields("Chatter") = Request.Form("Chatter")" I have attached the file below as a code snippet. Thanks.

'Create an ADO connection odject

Set adoCon = Server.CreateObject("ADODB.Connection")

'Set an active connection to the Connection object using a DSN-less connection

adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("artform.mdb")

'Create an ADO recordset object

Set rsAddComments = Server.CreateObject("ADODB.Recordset")

'Initialise the strSQL variable with an SQL statement to query the database

strSQL = "SELECT MASTER_Rolodex.Name,MASTER_Rolodex.Phone,MASTER_Rolodex.NeedIt,MASTER_Rolodex.DateRuns, MASTER_Rolodex.Headline,MASTER_Rolodex.Source,MASTER_Rolodex.Chatter,MASTER_Rolodex.Reference,MASTER_Rolodex.Instructions FROM MASTER_Rolodex;"

'Set the cursor type we are using so we can navigate through the recordset

rsAddComments.CursorType = 2

'Set the lock type so that the record is locked by ADO when it is updated

rsAddComments.LockType = 3

'Open the MASTER_Rolodex table using the SQL query held in the strSQL varaiable

rsAddComments.Open strSQL, adoCon

'Tell the recordset we are adding a new record to it


'Add a new record to the recordset

rsAddComments.Fields("Name") = Request.Form("Name")

rsAddComments.Fields("Phone") = Request.Form("Phone")

rsAddComments.Fields("NeedIt") = Request.Form("NeedIt")

rsAddComments.Fields("DateRuns") = Request.Form("DateRuns")

rsAddComments.Fields("Headline") = Request.Form("Headline")

rsAddComments.Fields("Source") = Request.Form("Source")

rsAddComments.Fields("Chatter") = Request.Form("Chatter")

rsAddComments.Fields("Reference") = Request.Form("Reference")

rsAddComments.Fields("Instructions") = Request.Form("Instructions")

'Write the updated recordset to the database


'Reset server objects


Set rsAddComments = Nothing

Set adoCon = Nothing

'Redirect to the ArtDepartmentEntry.asp page

Response.Redirect "ArtDepartmentEntry.asp"


Open in new window

Question by:kfranck
  • 3
  • 2
LVL 15

Expert Comment

Comment Utility
you are trying to store more data than this database filed allowed, change the field type for this Chatter to text data  type
LVL 11

Accepted Solution

Rajesh Dalmia earned 500 total points
Comment Utility
it seems that u are using MsAccess as ur database. Make the filed type of 'Chatter' as Memo and the error will resolve.
LVL 15

Expert Comment

Comment Utility
rdonline1 is right i just see the error what may caused, in acess it Memo and SQL text
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).


Author Closing Comment

Comment Utility
Your solution worked perfect. Thank you. I have another thing to ask on on this project, but I will submit another question. Thanks again.
LVL 11

Expert Comment

by:Rajesh Dalmia
Comment Utility
glad i could help n thanks for the grade.
LVL 15

Expert Comment

Comment Utility
ah, i missed the points

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now