alexkong2003
09-12-2006, 09:12 PM
Hi all,
I have a Critical problem for my Grant Total field... hope someone can give a prefect solution.
I have a Grant total that use to show all those Sum of the sub total from my report. I use a combo box to control the display of my report, like 1 Reference No. could have several field of Company, Number of Employee, Sex by male or female and Expenses. i use Sum(IIf([Sex]="Male",1,0)) to count my male prefectly and the female as well In the Footer of the report of the Grant total field.
Now there is the problem when i count a Grant Total of the expenses in the Report Footer of the report! I use "Sum([TotalExpenses])" to do my Grant total BUT... The Amount is not correct!!, I wonder why the sum of the male or female is right but expenses not correct??!! (pls refer to Figure1), i do it with the same formula by Sum(IIf([Sex]="Male",1,0)) --> "Male", Sum([TotalExpenses])--> TotalExpenses.
Can somebody tell me why!!!?? Thank you!!
Regard,
alex
I have a Critical problem for my Grant Total field... hope someone can give a prefect solution.
I have a Grant total that use to show all those Sum of the sub total from my report. I use a combo box to control the display of my report, like 1 Reference No. could have several field of Company, Number of Employee, Sex by male or female and Expenses. i use Sum(IIf([Sex]="Male",1,0)) to count my male prefectly and the female as well In the Footer of the report of the Grant total field.
Now there is the problem when i count a Grant Total of the expenses in the Report Footer of the report! I use "Sum([TotalExpenses])" to do my Grant total BUT... The Amount is not correct!!, I wonder why the sum of the male or female is right but expenses not correct??!! (pls refer to Figure1), i do it with the same formula by Sum(IIf([Sex]="Male",1,0)) --> "Male", Sum([TotalExpenses])--> TotalExpenses.
Can somebody tell me why!!!?? Thank you!!
Regard,
alex