Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate Sales of Product per day

Status
Not open for further replies.

PhotoFrang

Programmer
Jun 10, 2003
5
CY
Hello,
I want to create a query that will calculate the sales of each product per day. I have two forms, “Products” and “Sales”. In the Sales form, I have the fields, Product1, Product2, Product3 and Product4. Each one of them has the sold quantity for each sale. All for of these fields are related to the Products table, with the field ProductName. What I want to do is to calculate the sales of each product for each day, and then for each week. I don’t know how could I tell the query, for each ProductName in the Products form, look in the Sales form, to Product1, Product2, Product3, Product4, and if there is a match, add the QuantityofProduct, any one of each four (e.g. QuantityofProduct1 or QuantityofProduct2), to the already existing number of quantity sold. Then I want to create a pivotchart that will show all these information (ProductName, Week and Day of Sale, Quantity Sold).
Thank you very much. I hope you will be able to find out a solution.
 
Hi!

Post the layouts of your tables and we should be able to help, or at least ask more questions.



Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top