问题
I need help on Access Report.
As shown in the image attached, I want the "Previous Balance" value (the text box holding (167,950.00)) added to the first row of the new month only (the "Deposit" column). The "Balance" column has Running Sum in the property.
As you can see, I'm getting negative values because the previous balance is not added to the first row of new month.
Please help. See Sample Report
回答1:
Well, I figured it out.
I saw this post:
1- is to have the open balance in a text box inside the report. 2- have a hidden text box as running sum over all, to have [Debit] - [credit] sum. 3- add another text box to have the result of [Debit] - [credit] then add the balance value to it.
I got confused initially that's why I posted this question.
This is how i fixed it in case someone needs it:
- The text box for the running sum is named "txtBalance"
- The text box for the Previous Balance is named "txtPreviousBalance"
- I created a new text box named "txtRunningBalance"
- I set the Visibility property of "txtBalance" to NO.
- I set the Control Source of "txtRunningBalance" to =[txtBalance]+[txtPreviousBalance] and place it over the hidden text box.
Note: Don't set the Running Sum property of the new text box. Just leave it as NO.
See the new image for Running Sum + Previous Balance
来源:https://stackoverflow.com/questions/44227867/previous-balance-added-to-first-row-only-in-access-report