Skip to main content
Answer

Make sure a 0% discount does not show on Form.

  • September 15, 2025
  • 6 replies
  • 85 views

Forum|alt.badge.img

Good Morning!

I am currently working on a few forms and one of the requests is to make sure that if the discount is showing 0% to remove it from the form. The title “Discount” can still be there but the number needs to go away. 

Currently I have =IIF (Null ([ARTran.DiscPct]) ,'',  [ARTran.DiscPCT]) . I feel like I’m close but I know I’m missing something. This is being done on the Sales Order invoice but will also be applied to others.

Any help would be appreciated.

Thanks,
Brent

Best answer by darylbowman

 Remove the parenthesis after [ARTran.DiscPct])

 

6 replies

dcomerford
Captain II
Forum|alt.badge.img+15
  • Captain II
  • September 15, 2025

@bbondura The DiscPct is a decimal field if its empty will have 0 in it not Null your fomulae would need to be 

=IIF ([ARTran.DiscPct]) = 0 ,'',  [ARTran.DiscPCT]) 


darylbowman
Captain II
Forum|alt.badge.img+15
  • September 15, 2025

Better yet

=IIf(IsNull([ARTran.DiscPct],0)=0 ,'',[ARTran.DiscPct])


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • September 15, 2025

Thank You guys! I get an error when entered and previewing the report. Is this normal?
 

Syntax error in the expression. Context: TextBox ‘TextBox39’ property ‘Value’

 

Brent


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • September 19, 2025

So I was working on this a little more today. This was on a different from and received the same error. Here is the properties box. Should anything look different?

 


darylbowman
Captain II
Forum|alt.badge.img+15
  • Answer
  • September 19, 2025

 Remove the parenthesis after [ARTran.DiscPct])

 


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • September 22, 2025

That worked! Thank You.