D
Dan
I have qry which gives me a summary of item sales by location:
SELECT DISTINCTROW tbl_locationtype.LocationtypeID,
tbl_locationtype.Locationtype, qrysales.Item, Sum(qrysales.Sold) AS
ItemSales, Sum(qrysales.Sales) AS ProductSales
FROM tbl_locationtype INNER JOIN ((tbllocation INNER JOIN (qrysales INNER
JOIN tblitemsales ON qrysales.ItemsalesID = tblitemsales.ItemsalesID) ON
tbllocation.LocationID = qrysales.LocationID) INNER JOIN tblevent ON
qrysales.EventID = tblevent.EventID) ON tbl_locationtype.LocationtypeID =
tbllocation.LocationtypeID
GROUP BY tbl_locationtype.LocationtypeID, tbl_locationtype.Locationtype,
qrysales.Item
ORDER BY tbl_locationtype.Locationtype;
Which does what I want, except for dates. I have a field called "Edate"
which when I add, I get item sales for each date. I dont want this, I just
want a summary of sales between specified dates. what is the best way to do
this. I have a form, for entering a start and an end date, which than calls
the report.
Can I set the total field for Edate to "where" and then set criteria?
SELECT DISTINCTROW tbl_locationtype.LocationtypeID,
tbl_locationtype.Locationtype, qrysales.Item, Sum(qrysales.Sold) AS
ItemSales, Sum(qrysales.Sales) AS ProductSales
FROM tbl_locationtype INNER JOIN ((tbllocation INNER JOIN (qrysales INNER
JOIN tblitemsales ON qrysales.ItemsalesID = tblitemsales.ItemsalesID) ON
tbllocation.LocationID = qrysales.LocationID) INNER JOIN tblevent ON
qrysales.EventID = tblevent.EventID) ON tbl_locationtype.LocationtypeID =
tbllocation.LocationtypeID
GROUP BY tbl_locationtype.LocationtypeID, tbl_locationtype.Locationtype,
qrysales.Item
ORDER BY tbl_locationtype.Locationtype;
Which does what I want, except for dates. I have a field called "Edate"
which when I add, I get item sales for each date. I dont want this, I just
want a summary of sales between specified dates. what is the best way to do
this. I have a form, for entering a start and an end date, which than calls
the report.
Can I set the total field for Edate to "where" and then set criteria?