G
Guest
I am trying to create a report which will show YTD, PTD & week results. I
would like the user to be able to enter the year, period & week #.
The SQL for the query which contains all the data is:
SELECT tblLOMMaster.Year, tblLOMMaster.Period, tblLOMMaster.Week,
tblLOMMaster.Dept, Sum(tblLOMMaster.MW) AS SumOfMW, Sum(tblLOMMaster.SE) AS
SumOfSE, Sum(tblLOMMaster.TotalSubsidy) AS SumOfTotalSubsidy,
Sum(tblLOMMaster.TotalIncAmt) AS SumOfTotalIncAmt, Sum(tblLOMMaster.MWINC) AS
SumOfMWINC, Sum(tblLOMMaster.SEINC) AS SumOfSEINC
FROM tblLOMMaster
GROUP BY tblLOMMaster.Year, tblLOMMaster.Period, tblLOMMaster.Week,
tblLOMMaster.Dept;
I would like the results to look similiar to:
Dept. (Grocery, Frozen, Dairy, Combined)
Current Week
Expense Income Shortfall/income
Midwest
Southeast
MWSE
Period to Date
Expense Income Shortfall/income
Midwest
Southeast
MWSE
Year to Date
Expense Income Shortfall/income
Midwest
Southeast
MWSE
I hope this is enough information. Any help would be greatly appreciated.
Thanks.
would like the user to be able to enter the year, period & week #.
The SQL for the query which contains all the data is:
SELECT tblLOMMaster.Year, tblLOMMaster.Period, tblLOMMaster.Week,
tblLOMMaster.Dept, Sum(tblLOMMaster.MW) AS SumOfMW, Sum(tblLOMMaster.SE) AS
SumOfSE, Sum(tblLOMMaster.TotalSubsidy) AS SumOfTotalSubsidy,
Sum(tblLOMMaster.TotalIncAmt) AS SumOfTotalIncAmt, Sum(tblLOMMaster.MWINC) AS
SumOfMWINC, Sum(tblLOMMaster.SEINC) AS SumOfSEINC
FROM tblLOMMaster
GROUP BY tblLOMMaster.Year, tblLOMMaster.Period, tblLOMMaster.Week,
tblLOMMaster.Dept;
I would like the results to look similiar to:
Dept. (Grocery, Frozen, Dairy, Combined)
Current Week
Expense Income Shortfall/income
Midwest
Southeast
MWSE
Period to Date
Expense Income Shortfall/income
Midwest
Southeast
MWSE
Year to Date
Expense Income Shortfall/income
Midwest
Southeast
MWSE
I hope this is enough information. Any help would be greatly appreciated.
Thanks.