I am beginner at MS access. I am making an access form to log and maintain loan payment. I have a main contact form where all the details such as a Unique ID, name, Loan amount, payment duration etc. of the person taking the loan are recorded. Now I have created another sub-form with table to record information of the amount recovered and installment paid. This table is linked to my main contact form through the Unique ID. As can been seen in the screenshot, I want a query that will automatically calculate the amount paid by a person and show what their outstanding amount is. I basically want the amount paid column to be a cumulative total of all the installments paid up to latest date. I tried the sum function in query but that didn't work. please help
