Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Field Data and Paragraphs

Status
Not open for further replies.

beruken

Programmer
Mar 12, 2002
22
US
I am querying an Access DB that has some of the text/memo fields data in Paragraph form. Question is, why do I loose my formatting when returning data to my web page?

i.e inserted into db as....

Sentence One

Sentence two

Returned from db as...

Sentence One Sentence Two
 
Hi

Within a memo field a carriage return is a valid character, but in HTML it means squat.

Just do this

Code:
response.write(replace(rs(&quot;yourfield&quot;),vbCrlf,&quot;<br>&quot; ))

and your formatting will be preserved. Derren
[Mediocre talent - spread really thin]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top