I have a query, like the following:
(Assumption: an ID will not have an entry in both "Meal" and "Daily" on
the same date; it can only have an entry in either "meal" or "Daily"
per date)
(Calculation: Total = Meal * 15
OR
Total = Daily * 9)
(Autonumber as primary key [hidden])
================================================== =================
ID | Name | Date | Meal | Daily | Total
| | | Allowance | Allowance | Allowance
================================================== =================
13738 | Ismail | 2/11 | | 1 | 9
15899 | Sugu | 3/11 | | 1 | 9
16210 | Musa | 3/11 | | 1 | 9
16210 | Musa | 3/11 | | 1 | 9
16213 | Ithnin | 4/11 | 1 | | 15
16213 | Ithnin | 4/11 | 1 | | 15
16213 | Ithnin | 5/11 | 1 | | 15
================================================== =================
I have to generate a report such as below (the user first have to
select a date range):
(Example) Date Range: Begin: 3/11
End : 5/11
================================================== ==========================
No | Name | ID | Total Daily | Total Meal | Total
| | | Allowance | Allowance |Allowance
================================================== ==========================
1 | Sugu | 15899 | 1 | | 9
2 | Musa | 16210 | 2 | | 18
3 | Ithnin | 16213 | | 3 | 45
| | | | |
================================================== ==========================
Total | 3 | 3 | 72
================================================== ==========================
The reports is supposed to select the IDs and its associated name
amongst the date range from the query , then sum each IDs respective
Daily Allowances or Meal Allowances, and then display the Total
Allowance (based on the calculations above). It will also display a
grand total of Daily Allowances, Meal Allowances and Total Allowances.
How do I create this report? Any ideas?
(Also let me know if I did not explain anything properly.)
Thank you