Hello,
I have created a query from 7 other queries; each one sums the data from a day by product and then it shows it on a 8th query where all the products are displayed with the daily\weekly\date periods selected from a form. - Not really explaining it well I know, its like a Crosstab query but I have used 7 different queries so each column can have different date ranges.
On the 8th Query (for the report) I am looking to show each column then the total of all 7 columns, however the total doesn't seem to add up. I also want to only show rows that are not 0, however when I try this then nothing shows up.
For Each Column
For Total Column
At the moment I get:
Col 1 Col 2 Col 3 Total
1 5 3 153 (instead of 9)
Many thanks,
Malcolm
I have created a query from 7 other queries; each one sums the data from a day by product and then it shows it on a 8th query where all the products are displayed with the daily\weekly\date periods selected from a form. - Not really explaining it well I know, its like a Crosstab query but I have used 7 different queries so each column can have different date ranges.
On the 8th Query (for the report) I am looking to show each column then the total of all 7 columns, however the total doesn't seem to add up. I also want to only show rows that are not 0, however when I try this then nothing shows up.
For Each Column
Code:
Day1Qty: Nz([D1Qty],0)
For Total Column
Code:
TotalQty: [Day1Qty]+[Day2Qty]+[Day3Qty]+[Day4Qty]+[Day5Qty]+[Day6Qty]+[Day7Qty]
At the moment I get:
Col 1 Col 2 Col 3 Total
1 5 3 153 (instead of 9)
Many thanks,
Malcolm