Sure; not a problem.
This is the SQL statement from the query that I used to create the report:
Code:
SELECT Sum([PERIOD_1]*-1) AS Revenue
FROM dbo_GLCHARD
HAVING (((dbo_GLCHARD.[GLACCOUNT])>="4010.01" And (dbo_GLCHARD.[GLACCOUNT])<="4100.02" And [FISCAL_YEAR]="2013")) OR (((dbo_GLCHARD.[GLACCOUNT])>="9625.00" And (dbo_GLCHARD.[GLACCOUNT])<="9626.02" And [FISCAL_YEAR]="2013"));
This is the first of many queries that provide single values to the report. Another one is:
Code:
SELECT Sum(dbo_GLCHARD.PERIOD_1) AS MatCOGS
FROM dbo_GLCHARD
HAVING (((dbo_GLCHARD.[GLACCOUNT])>="5010.01" And (dbo_GLCHARD.[GLACCOUNT])<="5100.02") AND ((dbo_GLCHARD.[FISCAL_YEAR])="2013"));
However, I can't seem to get the value that query returns into the report without problems. There will eventually be probably 20-30 different queries like this that will need to be included in the report. The only solution I've found so far is to build a master query which calls all the sub-queries and have the report call the master query. I'd like to be able to cut out this extra step and just do it all in the report. I was hoping there was a way in report design that I could just add a field and put some SQL specific to that field. That way I could just write the queries as I add the fields.