Results 1 to 4 of 4
  1. #1
    erickemboi is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2020
    Posts
    73

    Query or a function to calculate balances automatically

    Hello everyone. I am developing Students Fees Scheduler. Kindly, please I am requesting anyone to assist me with a QUERY or a FUNCTION to automatically calculate balances when certain amount of money has been paid. It should look like this:
    TOTAL AMOUNT OF MONEY TO BE PAID- let's call it x
    PAYMENT DATE-
    AMOUNT PAID-
    BALANCE- (TO BE SUBTRACTED FROM x)


    please, fees can be paid in different dates and with different amounts
    Thanks in advance.
    Kindly check attached database. God bless you.
    Attached Files Attached Files

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,552
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you actually need more tables,

    tFeesCharged tbl:
    FeeID(autonum), FeeName, studentID, FeeDate, note

    tPayments tbl:
    PayID(autonum),studentID, DatePd, AmtPd, FeeID


    1 table the holds all fees charged to student
    1 table the holds all payment made by student
    then a query is run to sum each table, the difference will be balance due.

  4. #4
    erickemboi is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2020
    Posts
    73
    When I create the two tables, when i try to edit i get "THIS RECORDSET IS NOT UPDATEABLE"

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

Similar Threads

  1. Function to calculate the lowst rental cost
    By shme in forum Programming
    Replies: 7
    Last Post: 01-13-2020, 07:20 PM
  2. Replies: 2
    Last Post: 11-25-2019, 11:54 AM
  3. Query to get accounting balances
    By jobbie in forum Access
    Replies: 9
    Last Post: 03-09-2016, 05:56 AM
  4. Replies: 5
    Last Post: 04-01-2012, 07:21 AM
  5. Create global function to calculate tax week
    By haylau in forum Programming
    Replies: 4
    Last Post: 03-15-2011, 10:31 AM

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