Hello
I have a query with 3 fields. Budget Owner (text) - Total Charges (Sum Currency) and Month (text). The Month's criteria is based on a combo box from a form. When the user selects a month I would like the query to retrieve the totals from the month selected plus all previous months. I have tried many if statements but cannot figure this one out. Thanks
SELECT [2009_Consolidated].[Budget Owner], Sum([2009_Consolidated].[Total Charges]) AS [SumOfTotal Charges], [2009_Consolidated].Month
FROM 2009_Consolidated
GROUP BY [2009_Consolidated].[Budget Owner], [2009_Consolidated].Month
HAVING ((([2009_Consolidated].Month)=[Forms]![Frm_Input_Month_For_Data]![Combo0]));
I have a query with 3 fields. Budget Owner (text) - Total Charges (Sum Currency) and Month (text). The Month's criteria is based on a combo box from a form. When the user selects a month I would like the query to retrieve the totals from the month selected plus all previous months. I have tried many if statements but cannot figure this one out. Thanks
SELECT [2009_Consolidated].[Budget Owner], Sum([2009_Consolidated].[Total Charges]) AS [SumOfTotal Charges], [2009_Consolidated].Month
FROM 2009_Consolidated
GROUP BY [2009_Consolidated].[Budget Owner], [2009_Consolidated].Month
HAVING ((([2009_Consolidated].Month)=[Forms]![Frm_Input_Month_For_Data]![Combo0]));