I have a table called banktransaction s in this table i have the following fields
date
details
dramount
cramount
i am using this table to create a report showing the transactions for a given period. the report asks for the starting date and then for the ending date and automatically displays the fields details - dramount and cramount field for that period. i want to include in my report a new field which will be called balance brought forward and it will be the total of the previous dramount field - cramount field for the period before the starting date.
for example i have the following data
date details dramount cramount
1/1/2011 payment1 35
3/1/2011 payment2 45
3/1/2011 receipt1 100
10/2/2011 payment3 20
15/2/2011 receipt2 40
18/2/2011 payment4 10
if i give as a starting date the 01/02/11 and as an endinf date the 28/2/2011 i want to have the following result in my report.
balance brought forward 20
date detail dramount cramount
10/2/2011 payment3 20
15/2/2011 receipt2 40
18/2/2011 payment4 10
new balance 30
please someone help because i am stuck
date
details
dramount
cramount
i am using this table to create a report showing the transactions for a given period. the report asks for the starting date and then for the ending date and automatically displays the fields details - dramount and cramount field for that period. i want to include in my report a new field which will be called balance brought forward and it will be the total of the previous dramount field - cramount field for the period before the starting date.
for example i have the following data
date details dramount cramount
1/1/2011 payment1 35
3/1/2011 payment2 45
3/1/2011 receipt1 100
10/2/2011 payment3 20
15/2/2011 receipt2 40
18/2/2011 payment4 10
if i give as a starting date the 01/02/11 and as an endinf date the 28/2/2011 i want to have the following result in my report.
balance brought forward 20
date detail dramount cramount
10/2/2011 payment3 20
15/2/2011 receipt2 40
18/2/2011 payment4 10
new balance 30
please someone help because i am stuck
Comment