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

Bold Text 1

Status
Not open for further replies.

cjany

IS-IT--Management
Nov 3, 2004
72
US
I have a comment {comment} field and I would like to bold all instances of the word "CITATION". I've searched this formula for similar postings and nothing has worked for me.

Any suggestions?
 
I would use a combination of string functions to do a search for the word citation, instr would be one.

Something like

if length(trim(left({notefield}, instr(totext({notefield}), "CITATION"))))
then
trim(left({notefield}, instr({notefield}, "CITATION")))

And you would probably be doing this in the field formatting section of formula workshop.

Hope this helps!
 
Create a formula {@comments} to replace the comments field:

replace({table.comments},"CITATION","<b>CITATION</b>")

Then format {@comments} by right clicking on it->format field->paragraph->text interpretation->HTML text.

-LB
 
Wonderful solution (as always), Lbass, thank you!
A star for this.

Dana
 
That worked beautifully. Thank you so much.

Cheryl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top