Make textobject bold based on condition in crystal

2019-09-02 15:55发布

In my crystal report, there are two columns Name and Amount. What i want is if Amount is blank then Name must be bold otherwise it will be in regular font. I don't know how to write formula for this condition. any help would be appreciated. Thanks.

2条回答
我想做一个坏孩纸
2楼-- · 2019-09-02 16:06

Try this

if Isnull(<<Databsefield Amount>>)
then crBold
Else crRegular
查看更多
Animai°情兽
3楼-- · 2019-09-02 16:32

You should be able to:

  • Right-click the "Name" field
  • Select "Format Object"
  • Click the formula button next to "Style"

If your Amount field is a number (probably is, but you used the phrase "is blank"), then compare it to 0 instead of an empty string.

enter image description here

查看更多
登录 后发表回答