Divide by Zero Error

Where this occurs, the formula which the program is trying to evaluate is printed out, together with the value of all the fields affected.

The error can be corrected either by modifying the data, which would be a good approach if just a few records had bad data, or by modifying the formula, for example:

If (ORDER_LINE.QUANTITY 0)Then PRICE / ORDER_LINE.QUANTITY

works with a zero quantity.