Previous Balance added to First Row only in Access Report

本小妞迷上赌 提交于 2019-12-12 04:15:26

问题


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:

  1. The text box for the running sum is named "txtBalance"
  2. The text box for the Previous Balance is named "txtPreviousBalance"
  3. I created a new text box named "txtRunningBalance"
  4. I set the Visibility property of "txtBalance" to NO.
  5. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!