Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access ASP
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP 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 June 13th, 2003, 12:18 PM
Registered User
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP: Textarea Problem when updating DB

Does anyone know how to correct data input into a text area with a carriage return or multiple carriage returns? When the user hits the enter key within the textarea one or more times, the data from the textarea that is sent to the Access DB is gone after the first carriage return.

I coded this:
strCommodities=Replace(strTempCommodities, vbcr, "")

which sent (data within quotes below) to database:
"This is a test to see how a []carriage return [] sends data to database after replace option coded."

The [] are actually little square boxes when viewing the table.

How can I force one long line of text (IE and NS friendly) to be sent to the DB without the garbage? Thanks for info!
Old June 13th, 2003, 12:35 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

I think that you need to replace using vbCrLf instead of vbcr. In your situation, you are replacing just the carriage return, leaving the linefeeds in place.

Change it to this:

   strCommodities=Replace(strTempCommodities, vbCrLf, "")

and I think your square boxes will go away.



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with updating the db using servlet Behl_Neha Java Databases 1 December 24th, 2007 06:08 AM
How to store textarea in a db? Hylsan PHP How-To 1 March 1st, 2007 07:51 AM
updating db records using asp Version: 2000 devasi Access ASP 0 February 7th, 2005 05:25 PM
problem displaying text fron Db to textarea mail4nrs Classic ASP Databases 4 August 20th, 2004 08:31 AM
updating db with dataAdapter/dataTable problem mm1234 ADO.NET 0 November 19th, 2003 06:49 AM

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