我如何解决"除以零"在尝试运行水晶报告时查看在给定范围之外交付的订单数量时出现的错误?

时间:2016-04-06 13:08:06

标签: crystal-reports crystal-reports-xi

报告查看交付日期/时间以及在给定时间内计算出百分比的计划日期/时间

如果没有为所有订单更新交货,那么我得到"除以零"错误 公式是

IF {@ONTIME}<>0 
THEN 
1 % Count ({the job number}, {delivery address}) 
ELSE 
0

请提出任何建议

1 个答案:

答案 0 :(得分:0)

试试这个:

IF not isnull ({@ONTIME}) or  ({@ONTIME})<>0 then
1 % Count ({the job number}, {delivery address}) 
ELSE 
0