I am having an issue with this If Statment and was wondering if somebody could give me some advice on the best way to write this IF statement.
We have different products where our Data Entry team enters different rates for each day. I am trying to develope a report that only shows locations where the one of the Mon - Sun rates are higher than they should be. However, the report is only showing locations where all of the Mon - Sun rates are higher than they should be. Can somebody explain to me what I am doing wrong in the IF statement?
Here is the code that I am putting in the Suppress Detail Section
IF {Product.Procduct} = "Product1" AND ({Rate.Monday} < .81 OR {Rate.Tuesday}< .81 OR {Rate.Wednesday} < .81 OR {Rate.Thursday} < .81 OR {Rate.Friday} < .81 OR {Rate.Saturday} < .81 OR {Rate.Sunday} < .21) THEN TRUE
Else IF {Product.Product} = "Product2" AND ({Rate.Monday} < 1.01 OR {Rate.Tuesday}< 1.01 OR {Rate.Wednesday} < 1.01 OR {Rate.Thursday} < 1.01 OR {Rate.Friday} < 1.01 OR {Rate.Saturday} < 1.01 OR {Rate.Sunday} < 1.01 ) THEN TRUE
ELSE IF ({Rate.Monday} < 1.50 OR {Rate.Tuesday}< 1.50 OR {Rate.Wednesday} < 1.50 OR {Rate.Thursday} < 1.50 OR {Rate.Friday} < 1.50 OR {Rate.Saturday} < 1.50 OR {Rate.Sunday} < 1.50 ) THEN TRUE
ELSE FALSE
Edited by alrichar - 24 Dec 2012 at 5:32am