B
Barry
Hi, there,
I am preparing a report for presentation for the % of
discount, So a field for Discount and a field for Sales
and I create one more field for [Discount]/[Sales] in my
report.
As I got #Div/0 or #num, I create the following in the
control
IIf(IsError([discount]/[Sales]),"ERROR",[discount]/Sales])
If IsError is false, the formula can give the correct
amount, but in case of Div/0!, it cannot give "ERROR"
message but still shows Div/0 message, However, when I
create another temp field for [discount]/[Sales] and use
the conditioning forumula to test such field, the forumla
works! I cannot figure out how to correct it, please help.
Thank you.
Barry
I am preparing a report for presentation for the % of
discount, So a field for Discount and a field for Sales
and I create one more field for [Discount]/[Sales] in my
report.
As I got #Div/0 or #num, I create the following in the
control
IIf(IsError([discount]/[Sales]),"ERROR",[discount]/Sales])
If IsError is false, the formula can give the correct
amount, but in case of Div/0!, it cannot give "ERROR"
message but still shows Div/0 message, However, when I
create another temp field for [discount]/[Sales] and use
the conditioning forumula to test such field, the forumla
works! I cannot figure out how to correct it, please help.
Thank you.
Barry