Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access ASP
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 13th, 2003, 12:18 PM
Registered User
Join Date: Jun 2003
Location: , IL, USA.
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!
Reply With Quote
  #2 (permalink)  
Old June 13th, 2003, 12:35 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 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.


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:17 PM.

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