Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2004, 06:22 PM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Memo Datatype Error

Hello,

I'm saving a textarea value from a form into an Access DB. When the textarea info hits the Comments field, which has a datatype of Memo, it is not updated. However, if the Comments field is set to a datatype of Text, the info is saved. But, it will only save up to 255 characters. I want to use Memo to save a long message. How can I get my data saved with a datatype of Memo? Here's the code that updates the Comments field of each record.

'objRS is the recordset, Comments is the filed, and
'finformation is the value of the textarea.
objRS.Update "Comments", finformation

Any help? Thanks.
 
Old April 28th, 2004, 01:12 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

textarea=request("textarea")

set cnn=Server.CreateObject("ADODB.Connection")
cnn.Open Application("cnn_ConnectionString")
sql = "update tablename set fildname='"&textarea&"'"
cnn.Execute(sql)


surendran
(Anything is Possible)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Format : Memo scandalous Access 2 February 22nd, 2007 10:31 AM
Memo to text Tachyophan Access VBA 0 October 26th, 2006 06:08 AM
sql error: memo field "LIKE" or "=" gilgalbiblewheel Classic ASP Databases 3 April 29th, 2005 07:16 AM
Datatype Error on Insert cavada1 ADO.NET 0 November 5th, 2003 01:40 PM
Memo fields takabyte Classic ASP Basics 2 October 31st, 2003 06:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.