Hi Expert, I need your help and advice.
In the customer Sales Analysis report, I have three tables: Customer Table, Value Entry Table and Res. Ledger Entry Table. How to count the total number of the customers based on the date range and put the total number at the customer footer. Thanks!
0
Comments
Declare intcounter as decimal
In the Customer OnaftergetREcord
intcounter :=1
In the customer onpreDataitem
CurrReport.CREATETOTALS(intCounter);
In the Customer footer, intCounter shows the total number of all of the customers in the system (e.g in the following report, total number of customers is showing as 330 instead of 3). How to get the correct numbers of the total customers as below:
Customer Sales Analysis
5/10/13-5/20/13
Customer A
Customer B
Customer C
Total number of the customers: 3
Thank you!
but have the same result. I tested using one day report and even thought there are a total of 10 records showing, but
the numbers is showing 500. Thank you!
Declare FirstTime as boolean.
In Value Entry Table - OnPreDataItem
FirstTime := False;
In Value Entry Table - OnAfterGetRecord
IF FirstTime = False THEN BEGIN
incounter := incounter + 1;
FirstTime := True;
END;
I added intcounter in the value entry groupfooter and footer sections and per your instructions, I added the codes, but it doesn't work. Please advise! Thank you very much!