Error message

CoachPhil

Registered User.
Local time
Yesterday, 20:38
Joined
Jun 24, 2008
Messages
83
I have a Division by Zero error when I run a report. I believe I have traced it back to a query, an expression in the query ‘ACHT: Nz(AgentDataByMonth!t_logged_in/AgentDataByMonth!n_incoming,0)’ returns an 'Error' on lines where there are zeroes in the calculation.
Am I on the right track?

CoachPhil
 
Typically this type of error occurs when a field in the denominator of a formula evaluates to zero (0). You can eliminate the error by evaluating it away, like this:
Code:
Iif(Nz(MyFieldInTheDenominator,0)=0,"",MyNumerator/MyFieldIndTheDenominator)
 
as always, you are on the mark, thank you George
 

Users who are viewing this thread

Back
Top Bottom