Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Urgent Crystal Question!!!
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00615555
Message ID:
00615577
Views:
10
>I have 2 Running Total fields used in a Formula field:
>
>
>iif({#t_Group2_Total_Calls} > 0 and {#t_Group2_Total_Orders} > 0, round(({#t_Group2_Total_Orders}/{#t_Group2_Total_Calls})*100,0),0)
>

>
>I'm getting a 'Devision By Zero' error. According to this syntax, this
>should not be happing.
>
>The first part if the IIF() checks to see if BOTH totals are greater
>than zero, if IF the are, then devides one by another, otherwise
>returns zero.
>
>I can't seem to figure this out. It shouldn't be happening. Anyone know
>what to do here?
>
>Thanks

One thing I would try to check for the NULL value while comparing....In VFP, "Variable > NULL" returns False....
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform