I am having a bit of trouble with this formula, any ideas would be greatly appreciated.
The 'if' before the 'or' works fine, but when I add the second bit it just gives me -1 for everything which is not correct.
Thanks for your help on this one.
Rob
Expr1: Sum(IIf([year]<2010,[so2_cost]/(610-17*([year]-2004))) Or (IIf(([year]<2019 And [year]>2009),[so2_cost]/(1126+90*([year]-2010)))))
The 'if' before the 'or' works fine, but when I add the second bit it just gives me -1 for everything which is not correct.
Thanks for your help on this one.
Rob