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!

Textarea Box and Record Set Value 1

Status
Not open for further replies.

blackte

Programmer
Jul 24, 2001
80
US
I have a form, that I'm attempting to place a textarea box to put datarecords from an access database in for display and update. These datarecords can contain upto 70 bytes of data, each textarea could have up to 40 rows in it. I have a loop but can not get a line break to happen for each row to display on a seperate line, they all flow together in the textarea. below is my code. I have tried the replace statement, also adding the <br>, but with no luck. It appears like this

text line 01text line 02text line 03

and I want it to appear as follows -

text line 01
text line 02
text line 03

----------------

rst.MoveFirst
%>
<textarea rows=25 cols=75 id=textarea1 name=textarea1>
<%
Do Until rst.EOF
%>
<%= rst("text_detail") %>
<%
rst.MoveNext
Loop
%>
</textarea>


Thanks in advance for your help with this....

Thanks TBlack.
 
Code:
rst.MoveFirst
%>
  <textarea rows=25 cols=75 id=textarea1 name=textarea1>
<%    
    Do Until rst.EOF 
%>            
       <%= rst("text_detail") [b]& vbcrlf [/b]%> 
<%
       rst.MoveNext
    Loop    
%>
</textarea>


Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
mwolf00, Thanks for the help, it fixed my problem.

Thanks TBlack.
 
Thank mwolf00 properly (closing the post) ;-)


buffalo.gif height="65" width="35"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top