Hillbillie
IS-IT--Management
Here is my problem. I have this report that I get a sum.
I use this in my a text box called SumBox
I put this in the Control Source =Sum(IIf([grade]="A",4*[hourscred],IIf([grade]="B",3*[hourscred],IIf([grade]="C",2*[hourscred],IIf([grade]="D",1*[hourscred],0)))))/Sum(IIf([grade] In ("A","B","C","D"),[hourscred],0))
This works well except when it is trying to divide by zero on the report and it gives #Num! on the report. I would like for it to read 0
I didnt see anything exactly like this in the forum and would appreciate someone letting me know what I need to change.
Thanks
I use this in my a text box called SumBox
I put this in the Control Source =Sum(IIf([grade]="A",4*[hourscred],IIf([grade]="B",3*[hourscred],IIf([grade]="C",2*[hourscred],IIf([grade]="D",1*[hourscred],0)))))/Sum(IIf([grade] In ("A","B","C","D"),[hourscred],0))
This works well except when it is trying to divide by zero on the report and it gives #Num! on the report. I would like for it to read 0
I didnt see anything exactly like this in the forum and would appreciate someone letting me know what I need to change.
Thanks