I always seem to have trouble with calculated fields in a report.
Right now, I have a report that works like this...
I have a table containing individual transactions, and each transaction is related to a table called "Expenses". The "Expenses" table contains the categories for each transactions. I use a GROUP BY query to sum all the transactions into their respective expense categories.
I use this GROUP BY query as the source for my report. When you run the Group-By query, it produces a field called "SumOfTransacti ons", and that field appears in the details of my report. The detail of the report shows all the expense categories and their totals.
Now, at the end of the report, I want to get the total of all the expense categories. At the bottom of my report, I create a calculated field with the source:
=Sum(Nz([SumOfTransactio ns])
... and I get #Error.
I've checked my references and I'm certain I've named the field correctly.
I've tried running a SELECT query on the results of the GROUP-BY query, and then using the SELECT results as the source, but that didn't fix the problem. I assume there is a trick to totalling a GROUP-BY query, but I can't figure it out. Any help would be appreciated?
Thanks
-Adam
Right now, I have a report that works like this...
I have a table containing individual transactions, and each transaction is related to a table called "Expenses". The "Expenses" table contains the categories for each transactions. I use a GROUP BY query to sum all the transactions into their respective expense categories.
I use this GROUP BY query as the source for my report. When you run the Group-By query, it produces a field called "SumOfTransacti ons", and that field appears in the details of my report. The detail of the report shows all the expense categories and their totals.
Now, at the end of the report, I want to get the total of all the expense categories. At the bottom of my report, I create a calculated field with the source:
=Sum(Nz([SumOfTransactio ns])
... and I get #Error.
I've checked my references and I'm certain I've named the field correctly.
I've tried running a SELECT query on the results of the GROUP-BY query, and then using the SELECT results as the source, but that didn't fix the problem. I assume there is a trick to totalling a GROUP-BY query, but I can't figure it out. Any help would be appreciated?
Thanks
-Adam
Comment