divided by zero

Why when using this formula get exception divided by zero
[IIf([rpt_Transactions.QuantityBalance] == 0,0,([rpt_Transactions.AmountBalance] / [rpt_Transactions.QuantityBalance]) )]

and when use this it works
[[rpt_Transactions.QuantityBalance] == 0 ? 0:[rpt_Transactions.AmountBalance] / [rpt_Transactions.QuantityBalance] ] ???


other question What is language that used for writing expression and is there any documentation for it ???

Comments

Leave a Comment