I have a datareport that is generated from mdb, it reports each line of the database as required in the report. There are records that have the same allocation number, but with diff prices in the database. I want the report to also list the sum of the allocation number at the bottom of the report (Section 5 of the report) To explain : My table (simplified) has these records.
Allocation Amount
1 100
2 50
1 75
3 34
1 20
etc etc
My report list as above, but would want a sum of example allocation "1" beneath in section5
1 195 (this is the sum of all the 1's)
2 50
etc
This is the code i have but it just totals the whole database.
DataReport1.Sec tions("section5 ").Controls.Ite m("Function1"). DataField = "Total"
Not sure if I have to ref the control (funtion1) to a field in the db?
Thanks, if anyone could shed light
Allocation Amount
1 100
2 50
1 75
3 34
1 20
etc etc
My report list as above, but would want a sum of example allocation "1" beneath in section5
1 195 (this is the sum of all the 1's)
2 50
etc
This is the code i have but it just totals the whole database.
DataReport1.Sec tions("section5 ").Controls.Ite m("Function1"). DataField = "Total"
Not sure if I have to ref the control (funtion1) to a field in the db?
Thanks, if anyone could shed light
Comment