Results 1 to 12 of 12
  1. #1
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618

    Opening balance worked into running balance.

    When I create a running balance on a report. How do I bring the opening balance into the calculation? I.e.
    Debtor account Statement from 1Dec17 to 31 Dec17. Opening balance was derived through complicated calculated field in a query.

    Running Balance(should be)
    Opening balance 30 Nov 1000.00


    Debit in Dec Invoice 700.00 1700.00
    Credit in Dec Payment 500.00 1200.00

    Closing balance 31Dec17 therefor 1200.00

    Thank you.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,522
    the starting balance would be in the query.
    the running balance is in the report where the field property: RUNNING SUM = TRUE

  3. #3
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    Thank you. As you may see. On my report there is an opening balance of -2894.49, it should be calculated into the running balance first line which shows -3376.13. The -3376.13 should be -6270.76. Attachment 31944

  4. #4
    Minty is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,002
    Add the opening balance to each detail line total.
    Then you will get the correct running balance.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    Appears Balance textbox is set for RunningSum. As Minty says, include reference to the Opening Balance textbox/field to add it into the Balance calculation.

    Show the expression in the Balance textbox if you need more help.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    I have a union query with field named "balance" which in the report I applied the running balance option. I tried what you suggested. In the query I created a field "balance2" and the expression is now =Forms![f05PrtLdgAcc]![T08]+balance
    . Problem is the running balance adds the opening balance each time and the opening balance already included in the balance above, so it snowballs. I haven’t spent enough minutes trying to find a way to have it in only once. If you understand. Please help.

  7. #7
    Minty is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,002
    Add it after the Running sum has done it's bit.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    Sorry, my suggestion was a bit of misdirection.

    Have a hidden textbox for the Running Sum.

    Have another textbox with expression that adds the Running Sum textbox with the opening balance textbox.

    Is the Balance field the difference between Debit and Credit fields?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    Thanks Minty. I don't understand yet. Add after?

  10. #10
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    Thanks June7. Yes the balance field is the difference between debit and credit fields. Still not sure how to include the opening balance in the running sum.

  11. #11
    Minty is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,002
    In the report you would make it do this;
    Opening Balance -1234
    Debit Credit Running Balance Hidden O/B Actual Balance
    0 3432 -3432 -1234 -4666
    0 5431 -8863 -1234 -10097
    0 2134 -10997 -1234 -12231
    0 1256 -12253 -1234 -13487
    0 324 -12577 -1234 -13811
    0 1903 -14480 -1234 -15714

    Does that make sense?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    My suggestion is to have a hidden textbox with the running sum, call it txtBal. The opening balance textbox is named txtOpen. Then another textbox with calc: =[txtBal] + [txtOpen].

    The hidden control for the opening balance suggested by Minty is not needed.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How To Get Running Balance Of Customer with last balance
    By muhammadirfanghori in forum Access
    Replies: 1
    Last Post: 10-25-2016, 03:31 PM
  2. General Ledger Query With Opening Balance and Running Balance
    By muhammadirfanghori in forum Queries
    Replies: 3
    Last Post: 03-12-2015, 07:17 AM
  3. Replies: 1
    Last Post: 03-29-2014, 10:19 AM
  4. opening balance
    By bazahara in forum Access
    Replies: 1
    Last Post: 02-19-2012, 11:37 PM
  5. Running balance
    By bka57 in forum Forms
    Replies: 3
    Last Post: 01-22-2012, 07:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums