Hi Lpitt56
For more background information on null look at:
What is null?
Basicly, the problem comes from the fact that null is NOT the same as 0. Simple example. Imagine this simple example:
I hand you a black bag, and tell you there are apples inside. I dont tell you how many and you are not allowed to look. You have NULL information on the amount of apples. If I ask you to add / subtract / divide, you would still have NULL information on the result. That is similar to what is going on here.
However, sometimes we as programmers know that the absence of a value IS equal to 0. We can then convert the null to something harmless, for instance a 0. This can be done by the Nz function (READ THE Access help on it)
- Nz(Variable, ALTERNATE_Variable)
If variable is NULL, it will return the ALTERNATE_Variable.
Example usage in your case:
- 1-(nz(qty rejected,0)/qty received)