Hello,
I have two tables that have a relationship based on a customer ID. The first table Customer has:
Customer ID
Name
Address
etc
Accounts Table has:
Customer ID
Sale
Payment
Balance
Date
Notes
etc
The Accounts table has all the transactions for all sales. So for customer 116, I could have 5 entries for sale, payment and balance.
I need to build a query for a report that looks at the table and does the following
Sort by customer name
Show the last balance for the customer based on the last or most recent date to the current date.
I know how to link tables, but I would need guidance on where to put this code if I can do this.
Thanks