Link to home
Create AccountLog in
Avatar of Becky Edwards
Becky EdwardsFlag for United States of America

asked on

Crystal Report detail section suppression not working.

I have placed this formula inside the  section expert, details section, common tab, suppression area, formula button.

(({V_ARPB_TX_ACTIVITY.PROC_QUANTITY})=0
   and ({@Charges})=0
 and ({@Adjs})=0
 and ({@Payments})=0
 and ({@Net}) =0)
and {?Show All Details} = "No"

The Show all details = no works perfectly by itself.
The suppress detail lines where all quantities = 0 works perfectly by itself.
But combining the two doesn't work at all.  All details show and will not suppress.
Avatar of Haver Ramirez
Haver Ramirez

make sure of the values of the combination is cero
Try adding ( ) around the last part

(({V_ARPB_TX_ACTIVITY.PROC_QUANTITY})=0
   and ({@Charges})=0
 and ({@Adjs})=0
 and ({@Payments})=0
 and ({@Net}) =0)
and ({?Show All Details} = "No")

If you have ?Sow All Details as a boolean parameter the AND would take precedence

mlmcc

ASKER CERTIFIED SOLUTION
Avatar of James0628
James0628

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Becky Edwards

ASKER

Thank you everyone.  

The right question as James points out is - how do I want the 2 tests to combine.  I don't care what happens to all the zero quantities if the detail section is suppressed.  What I want is, if the person says Yes to Show all details, that he/she ONLY sees lines of data where there is something other than all zeros.  In other words, as long as there is something in ONE of the formulas besides zero, I want the line of data to appear.  If ALL data in that line of formulas equals zero, then don't bother showing it.  

Does that make sense?

His last formula should work then
//Suppress if all are 0
({V_ARPB_TX_ACTIVITY.PROC_QUANTITY}=0
   and {@Charges}=0
 and {@Adjs}=0
 and {@Payments}=0
 and {@Net} =0)
or
//Or suppress if show details is false
{?Show All Details} = "No"

mlmcc
Thank you again !!!!!
You're welcome.  Glad I could help.

 James