Force Truncate

  • Thread starter frontpagecustoms.com
  • Start date
F

frontpagecustoms.com

is there a way to force truncate a memo field in a database results
region. I want to only display a fixed amount of text in the search
results field instead of the entire memo.
 
T

Thomas A. Rowe

On the page where your want to display the data, do

<%=Left(RecordSet("fieldname"),100))%>

which is grabbing the first 100 characters of the field content.

recordset = your recordset name
fieldname - the field name from your database

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
F

frontpagecustoms.com

On the page where your want to display the data, do

<%=Left(RecordSet("fieldname"),100))%>

which is grabbing the first 100 characters of the field content.

recordset = your recordset name
fieldname - the field name from your database

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================

Thanks I'll give this a try.
 

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

Top