Actually, as written, you can very possibly get a divide by zero.
Make the following changes and you will not get the #num and will not get a
divide by zero error.
=Sum(IIf([Findings]<>1 And
Nz([Month],0)=DateAdd("m",-4,Forms.ReportCriteria5.txtEndDate),Nz([ErrorAmnt],0),0))/Sum(IIf(Nz([Month],0)=DateAdd("m",-4,Forms.ReportCriteria5.txtEndDate),Nz([Allot],0),1))
As I stated in my previous post, in your divisor logic you use [Allot] and
it is 0, you will get a divide by zero error by specifyin 0 and the False
argument of the IIf function. That would end up as some number / 0
You can't do that. If you change that to 1 as I have in the example above,
it will divide the other number by 1. If that is not what you want it to do,
then use something else.
Also, Month should not be used as a name. It is an Access reserved word and
can confuse Access as to whether you are refering to a name or the Month
function.

Signature
Dave Hargis, Microsoft Access MVP
> Jacqueline:
>
[quoted text clipped - 21 lines]
> > >
> > > Thank you for any help.
Robbie Doo - 27 Mar 2008 23:36 GMT
Klatuu:
Looks like that corrected the problem. I get 0% instead of the error msg.
Thank you.
> Actually, as written, you can very possibly get a divide by zero.
>
[quoted text clipped - 40 lines]
> > > >
> > > > Thank you for any help.