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

Format Font Within Formula? 1

Status
Not open for further replies.

ddnh

Programmer
Nov 25, 2002
94
US
I use the following formula in my report header to show the parameters entered:

If {?chOrderDate} = false then
"Order Date is between " + ToText({?dtpFromOrderDate}) + " and " + ToText({?dtpToOrderDate})
else "Order Date is NOT between " + ToText({?dtpFromOrderDate}) + " and " + ToText({?dtpToOrderDate})

I'd like the parameter fields and the word "NOT" in bold. Is it possible to do this within the formula?
 
You can do this by changing the Text Interpretation on the Paragraph formatting tab (under Format Field) to HTML. Then simply use HTML tags around the areas that you want to show as bold.

I've added the tags to the first parameter and the "NOT" as examples below.

Change you +'s to &'s

If {?chOrderDate} = false then
"Order Date is between " & "<b>" & ToText({?dtpFromOrderDate})&</b>" & " and " & ToText({?dtpToOrderDate})
else "Order Date is & "<b> NOT </b> between" & ToText({?dtpFromOrderDate},0,"") & " and " & ToText({?dtpToOrderDate},0,"")


Mike
 
Thanks, that worked just fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top