Results 1 to 2 of 2
  1. #1
    Nadeem148 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2019
    Posts
    7

    Post Need Customer Previous Account Balance

    I have this data. and i need "Arrears" Field automatically update on next transaction if customer did not paid. Simply says, the "RemBal" Field of previous month or date for every customer comes to "Arrears" field on every next transaction/date or month of concern customer.





    CustomerID_FK TransDate Arrears CurrentBill Discount NetDueBill NetPaid AfterDue RemBal
    1 30-May-19 0.00 130.00 0.00 130.00 0.00 150.00 150.00
    1 30-Jun-19 0.00 130.00 0.00 130.00 130.00 0.00 0.00
    2 30-May-19 0.00 130.00 0.00 130.00 0.00 150.00 150.00
    2 30-Jun-19 0.00 130.00 0.00 130.00 0.00 150.00 150.00

    Kindly Help me.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    This should be calculated when needed.
    Accomplishing in query would be complicated, review http://allenbrowne.com/subquery-01.html#AnotherRecord
    Best place to do this calc is on reports utilizing RunningSum property of textbox.

    Unless you want to run some VBA code that would go find the data and save into record.

    Duplicate post https://www.accessforums.net/showthread.php?t=77423
    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. Replies: 6
    Last Post: 06-30-2019, 06:15 AM
  2. How to Retrieve Customer's Previous Balance
    By Athar Khan in forum Queries
    Replies: 2
    Last Post: 10-11-2017, 12:52 PM
  3. 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
  4. Calculate bank account balance
    By dougdrex in forum Queries
    Replies: 8
    Last Post: 11-28-2014, 01:59 PM
  5. account balance db help
    By Suzie2012 in forum Database Design
    Replies: 2
    Last Post: 07-15-2012, 09:16 PM

Tags for this Thread

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