I have 2 crosstab queries
Here is sql for 1
TRANSFORM Sum(qryExpenseHandleCategory.ForecastExpense) AS SumOfForecastExpense
SELECT qryExpenseHandleCategory.Mega, qryExpenseHandleCategory.Category, qryExpenseHandleCategory.ReportCategory2
FROM qryExpenseHandleCategory
GROUP BY qryExpenseHandleCategory.Mega, qryExpenseHandleCategory.Category, qryExpenseHandleCategory.ReportCategory2
PIVOT qryExpenseHandleCategory.CalendarYear;
Here is the other crosstab
TRANSFORM Sum(qryExpenseHandleCategory.PlanExpense) AS SumOfPlanExpense
SELECT qryExpenseHandleCategory.Mega, qryExpenseHandleCategory.Category, qryExpenseHandleCategory.ReportCategory2
FROM qryExpenseHandleCategory
GROUP BY qryExpenseHandleCategory.Mega, qryExpenseHandleCategory.Category, qryExpenseHandleCategory.ReportCategory2
PIVOT qryExpenseHandleCategory.CalendarYear;
then I combine them using a select query
Here is that sql
SELECT ExpenseCrossTabPlanExpense.Mega, ExpenseCrossTabPlanExpense.Category, ExpenseCrossTabPlanExpense.ReportCategory2, ExpenseCrossTabForecastExpense.[2010], ExpenseCrossTabPlanExpense.[2011], ExpenseCrossTabForecastExpense.[2011]
FROM ExpenseCrossTabPlanExpense INNER JOIN ExpenseCrossTabForecastExpense ON (ExpenseCrossTabPlanExpense.Mega = ExpenseCrossTabForecastExpense.Mega) AND (ExpenseCrossTabPlanExpense.Category = ExpenseCrossTabForecastExpense.Category) AND (ExpenseCrossTabPlanExpense.ReportCategory2 = ExpenseCrossTabForecastExpense.ReportCategory2);
I made a report based on this combined SQL - but the Controls in the body of the report are set to Sumof2010 ect. How can I make this not be the case
I do not want to have to modify the controls withing the header and footer section of the report for each new 2 years i want to look at????
Here is sql for 1
TRANSFORM Sum(qryExpenseHandleCategory.ForecastExpense) AS SumOfForecastExpense
SELECT qryExpenseHandleCategory.Mega, qryExpenseHandleCategory.Category, qryExpenseHandleCategory.ReportCategory2
FROM qryExpenseHandleCategory
GROUP BY qryExpenseHandleCategory.Mega, qryExpenseHandleCategory.Category, qryExpenseHandleCategory.ReportCategory2
PIVOT qryExpenseHandleCategory.CalendarYear;
Here is the other crosstab
TRANSFORM Sum(qryExpenseHandleCategory.PlanExpense) AS SumOfPlanExpense
SELECT qryExpenseHandleCategory.Mega, qryExpenseHandleCategory.Category, qryExpenseHandleCategory.ReportCategory2
FROM qryExpenseHandleCategory
GROUP BY qryExpenseHandleCategory.Mega, qryExpenseHandleCategory.Category, qryExpenseHandleCategory.ReportCategory2
PIVOT qryExpenseHandleCategory.CalendarYear;
then I combine them using a select query
Here is that sql
SELECT ExpenseCrossTabPlanExpense.Mega, ExpenseCrossTabPlanExpense.Category, ExpenseCrossTabPlanExpense.ReportCategory2, ExpenseCrossTabForecastExpense.[2010], ExpenseCrossTabPlanExpense.[2011], ExpenseCrossTabForecastExpense.[2011]
FROM ExpenseCrossTabPlanExpense INNER JOIN ExpenseCrossTabForecastExpense ON (ExpenseCrossTabPlanExpense.Mega = ExpenseCrossTabForecastExpense.Mega) AND (ExpenseCrossTabPlanExpense.Category = ExpenseCrossTabForecastExpense.Category) AND (ExpenseCrossTabPlanExpense.ReportCategory2 = ExpenseCrossTabForecastExpense.ReportCategory2);
I made a report based on this combined SQL - but the Controls in the body of the report are set to Sumof2010 ect. How can I make this not be the case
I do not want to have to modify the controls withing the header and footer section of the report for each new 2 years i want to look at????