I have created a report using Access 2003 that has 4 grouping levels.
1st grouping = by Sales Rep
2nd grouping = by Month
3rd grouping = by Sales Code
4th grouping = by Location
I have a field called "SalesDollars" that I need to SUM for each rep, for each month, for each sales code, for each location.
Is there any way possible that I can create a SUM function where I can say:
SUM([SalesDollars} WHERE [SalesCode] = "A" AND [Location] = "B"
I tried creating a SQL query similar to this, but when applying it to the field on the report, I keep getting a syntax error.
Is there an easier way to do this, such as the control source builder perhaps?
Please help!
1st grouping = by Sales Rep
2nd grouping = by Month
3rd grouping = by Sales Code
4th grouping = by Location
I have a field called "SalesDollars" that I need to SUM for each rep, for each month, for each sales code, for each location.
Is there any way possible that I can create a SUM function where I can say:
SUM([SalesDollars} WHERE [SalesCode] = "A" AND [Location] = "B"
I tried creating a SQL query similar to this, but when applying it to the field on the report, I keep getting a syntax error.
Is there an easier way to do this, such as the control source builder perhaps?
Please help!