N
niuginikiwi
Hi all,
I have a select query with the totals row enabled. 4 tables are
involved in that query (tblOrders, tblOrderDetails, tblProducts,
tblPacks)
tblOrders ---<tblOrderdetails and tblProducts ---<tblOrderDetails>---
tblPacks.
I have fields CustomerID from tblOrders, ProductName from tblProducts,
PackName from tblPacks and finally Qty from tblOrderDetails. All
fields are set as Group By except Qty which is set to Sum on the
Totals Row.
I use that query to produce a report.
In the report I have in the sorting and grouping dialog 2 fields
( CustomerID both header footer set to yes and ProductName only header
set to yes) and in the details section I have two fields ( sumofqty
and PackName).
This gives me a report in the form of , eg:
Customer ID: 3
ProductName: Lettuce
SumOfQty PackName
100 F75
That nicely summaries and its presents data in the form I am looking
for but when I put in the OrderDate field from tblOrders in the query
so I could later filter by date range to get that nice summary but
then the query tries to group records by OrderDate and in turn
presents me with a detailed information instead of the one I had
before.
What can I do to still keep the report look like what I was doing
before but be able to filter by Date Range.
Thanks,
niuginikiwi
I have a select query with the totals row enabled. 4 tables are
involved in that query (tblOrders, tblOrderDetails, tblProducts,
tblPacks)
tblOrders ---<tblOrderdetails and tblProducts ---<tblOrderDetails>---
tblPacks.
I have fields CustomerID from tblOrders, ProductName from tblProducts,
PackName from tblPacks and finally Qty from tblOrderDetails. All
fields are set as Group By except Qty which is set to Sum on the
Totals Row.
I use that query to produce a report.
In the report I have in the sorting and grouping dialog 2 fields
( CustomerID both header footer set to yes and ProductName only header
set to yes) and in the details section I have two fields ( sumofqty
and PackName).
This gives me a report in the form of , eg:
Customer ID: 3
ProductName: Lettuce
SumOfQty PackName
100 F75
That nicely summaries and its presents data in the form I am looking
for but when I put in the OrderDate field from tblOrders in the query
so I could later filter by date range to get that nice summary but
then the query tries to group records by OrderDate and in turn
presents me with a detailed information instead of the one I had
before.
What can I do to still keep the report look like what I was doing
before but be able to filter by Date Range.
Thanks,
niuginikiwi