Avatar of Howard Katz
Howard KatzFlag for United States of America asked on

How do I use crbold in a formula?

Hello Experts,
This should be a simple one.  Here is my formula.  I want the text 'Endorsements located on addendum page' to be bold if @EndNumber > 7.

How do I add the crbold.

IF {@EndNumber}>7 THEN
    chr(13) + chr(9) + 'Endorsements located on addendum page.'
ELSE
 {@Endorsements}

Thanks
Howard
Crystal Reports

Avatar of undefined
Last Comment
Howard Katz

8/22/2022 - Mon
analliah

right click on the formula, format field,
under font, Color >>> click on the x-2
 if @EndNumber > 7 then
crbold
ASKER
Howard Katz

I put (not in color but in stye)

// This conditional formatting formula must return one of the following Font Style Constants:
//
// crRegular
// crBold
// crItalic
// crBoldItalic
//

If @EndNumber > 7 then
crbold

and I got the error

crbold.jpg
ASKER
Howard Katz

see comment above
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
analliah

Sorry, Style is the correct place.
you are formatting this formula correct not the @endnumber

IF {@EndNumber}>7 THEN
    chr(13) + chr(9) + 'Endorsements located on addendum page.'
ELSE
 {@Endorsements}
ASKER CERTIFIED SOLUTION
analliah

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
Howard Katz

Thanks analliah.  You were right the first time only you didn't have the  curly brackets around the formula name.