Hi
I have a Report which runs on date parameter and it works fine when we refresh it,when we try to export it or go to last page it gives division by zero error.I tried with checking the option of convert database default values to null and default in Report Options along with that I changed that particular formula in this way
If
(
IsNull({Table1.field_1}) or {Table1.field_1}=0
)
Or
(
IsNull({Table1.field_2}) or {Table1.field_2}=0
)
Then
0
Else
{@formula_x}/{Table1.field_2}/{Table1.field_1}
//these fields are number fields
Is there any way we can modify the code so that It does not affect the other values of the Report
I have a Report which runs on date parameter and it works fine when we refresh it,when we try to export it or go to last page it gives division by zero error.I tried with checking the option of convert database default values to null and default in Report Options along with that I changed that particular formula in this way
If
(
IsNull({Table1.field_1}) or {Table1.field_1}=0
)
Or
(
IsNull({Table1.field_2}) or {Table1.field_2}=0
)
Then
0
Else
{@formula_x}/{Table1.field_2}/{Table1.field_1}
//these fields are number fields
Is there any way we can modify the code so that It does not affect the other values of the Report