I've created a report with a subreports looking at debit/credit transactions in a date range parameter and before the minimum date.
The report is to be run on a daily basis and consists of
Opening balance = sum{debit}+{credit} <{@min}
Debit = sum{debit} in {@min} to {@max}
Credit = sum{credit}in {@min} to {@max}
Closing Balance = (opening balance+debit)-credit
The problem is I need the opening balance to be the closing balance for the previous day and don't know the best way to get to this.
I've used subreports and created variables to share the data with the main report to perform the calculations. How do I incorporate all the formulas and different subreport criteria to get the closing balance to be the opening balance for the next day.
Any ideas?
Thanks
Sara
The report is to be run on a daily basis and consists of
Opening balance = sum{debit}+{credit} <{@min}
Debit = sum{debit} in {@min} to {@max}
Credit = sum{credit}in {@min} to {@max}
Closing Balance = (opening balance+debit)-credit
The problem is I need the opening balance to be the closing balance for the previous day and don't know the best way to get to this.
I've used subreports and created variables to share the data with the main report to perform the calculations. How do I incorporate all the formulas and different subreport criteria to get the closing balance to be the opening balance for the next day.
Any ideas?
Thanks
Sara