I have two tables and I would like to calculate the total amount of sales from one of the table.
In MainTable:
Customer (maintable.customer)
In SubTable:
Customer (subtable.customer)
Product (subtable.product)
In my query, I am limiting the products to "oranges" and "apples". However I would like the total of all of the products in one of the fields so I can see how much the customer is spending overall.
This query is the recordsource for a report, so my query has "Oranges" or "Apples" as the criteria because that is all that I want displayed in my report. But I would like to also include the total value of the customer.
Is there a way to do this?
Thanks in advance.
In MainTable:
Customer (maintable.customer)
In SubTable:
Customer (subtable.customer)
Product (subtable.product)
In my query, I am limiting the products to "oranges" and "apples". However I would like the total of all of the products in one of the fields so I can see how much the customer is spending overall.
This query is the recordsource for a report, so my query has "Oranges" or "Apples" as the criteria because that is all that I want displayed in my report. But I would like to also include the total value of the customer.
Is there a way to do this?
Thanks in advance.