retrieving formatted messages from an ACCESS memo field.

H

Hugh Welford

Hi ... My application saves variable length user-generated messages in an
ACCESS memo field. ASP writes these messages correctly retaining CR LF to
generate new paragraphs. (have checked this in the actual data base).

However , when I retrieve a message into another web page, the CR LF
characters are lost, and the message displays as one long sequence of
unformatted text. Anyone any idea how I can overcome this?

Using WIN XP/FP2000/IIS and the following code:-

<%
set objconn = server.createobject ("ADODB.connection")
set objrec = server.createobject ("ADODB.recordset")
objconn.open "DSN=daters"
strsql = "SELECT messages.text FROM messages WHERE messid = 305 ;"
objrec.open strsql, objconn, adopenforwardonly, adlockoptimistic,adcmdtext
%>

<%=objrec("text")%>

Thanks in advance Hugh
 
S

Steven Burn

I just use something along the lines of;

Replace(rst("TheText"), vbCrlf, "<br>")

Which suffices......

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top