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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

memo field not wrapping in table cell

Status
Not open for further replies.

new2unix

Programmer
Joined
Feb 5, 2001
Messages
143
Location
US
Hi,

The memo field from an Access database I am trying to display in a table does not seem to be wrapping even when the table column has a width parameter. The whole table column width gets expanded according to the length of the memo data. Is there something I can do to wrap the memo data according to the hard-coded width of the cell?

<td class=&quot;content&quot; width=&quot;200&quot;>#Replace(Replace(Description,&quot;#chr(10)#&quot;,&quot;<BR>&quot;,&quot;ALL&quot;),&quot; &quot;, &quot;&nbsp;&quot;, &quot;ALL&quot;)#&nbsp;</td>

Thanks

Mike
 
Please let us see some samples of what its outputting. If you'd prefer to do this in realtime.. Contact me as ClickthruBible on AIM or webmigit@hotmail.com on MSN and I'd be glad to take a glance at it.. =)

Tony Hicks [ Founder of <A href=&quot; online bible. ]
 
Does the data in the database have line breaks etc. If so you may be able to preserve the output of the field by placing it between <pre></pre> tags.

HTH

Kola
 
Hi Kola,

I tried the <pre></pre> but decided to use the replace function to put in the <BR> instead. But <pre> is another choice too. Thanks.

The problem I had was the memo field seemed to be causing the table cell to expand when the length of the line is longer than the width I gave to the cell. But another text field wrap according to the width of cell. I am trying to avoid the memo field expand the cell to far off to the right and the user would have to scroll to the right.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top