I have 2 tables [Table1] and [table2]with a unique reference number in table1 and this reference number is in the other table multiple times. I wanted to have a field in Table1 (deposit amount) subtracted from a field in table2 (expected deposit) but in table2 there are multiple lines with the same reference number so I need those added up and then subracted from the same reference number in Table1. I can't even get the query to do a regular join between these two tables muchless get the math part working. Would rather use a query than VBA code because it has been 4 years since I did any real programming and that was under JAVA.