K
KDG
This is probably very simple, but I can't make it do what I want! HELP!!!
It's a simple order database with products, dates and quantities... what I'm
trying to do is have a query simply give me how many total of each item were
ordered between a start and an end date. I can have it sum the items as long
as I leave the date out of it. As soon as I add the date into the query, it
gives me the items by date and doesn't add the items up.
Here's the SQL...
SELECT Sum([Order Details].Quantity) AS SumOfQuantity, Products.ProductName,
Orders.OrderDate
FROM Products INNER JOIN (Orders INNER JOIN [Order Details] ON
Orders.OrderID = [Order Details].OrderID) ON Products.ProductID = [Order
Details].ProductID
GROUP BY Products.ProductName, Orders.OrderDate
HAVING (((Orders.OrderDate) Between [start] And [end]));
As always... I really do appreciate all the help I get from the Group! You
guys are amazing... I'd just like to build simple things and make them
work... the complex stuff is just a dream! Thanks!!!!
It's a simple order database with products, dates and quantities... what I'm
trying to do is have a query simply give me how many total of each item were
ordered between a start and an end date. I can have it sum the items as long
as I leave the date out of it. As soon as I add the date into the query, it
gives me the items by date and doesn't add the items up.
Here's the SQL...
SELECT Sum([Order Details].Quantity) AS SumOfQuantity, Products.ProductName,
Orders.OrderDate
FROM Products INNER JOIN (Orders INNER JOIN [Order Details] ON
Orders.OrderID = [Order Details].OrderID) ON Products.ProductID = [Order
Details].ProductID
GROUP BY Products.ProductName, Orders.OrderDate
HAVING (((Orders.OrderDate) Between [start] And [end]));
As always... I really do appreciate all the help I get from the Group! You
guys are amazing... I'd just like to build simple things and make them
work... the complex stuff is just a dream! Thanks!!!!