I'm new to Access and SQL queries in general. I have a table of job tickets with fields for Job#, Product#, and number of products sold. I want to create a monthly stock summary. So I want to create a report that lists ever product sold and the total number of each product sold. Right now, it pulls each record from the Job tickets table and, as a result, displays records with the same product number multiple times. I want to add up the number sold of records that have the same product number.
My thinking is that I could make a query that selects records from the Job tickets table with distinct product numbers. Then loop through each product number in that recordset and run a query for each product number to add up the total number sold, but that seems like a lot of querying to me. Is there another way to do this?