Is it possible to place a sum function in an unbound textbox to give the total for a specific section in a report without building a query?
Yes, and you need to account for nulls so for example:
=Sum(Nz([YourFieldNameNotControlName],0))
and make sure that you don't have a control on the report that has the same name as the field (Access gets screwed up that way and will usually give you a #Name error).
Not sure I'm gathering it in but if you have a section total with
=Sum(Nz([YourFieldNameNotControlName],0))
You can also place that in another section and it will total it based on what that section is.
You are awesome! That also works. I am summing dollar amounts, how would I place the $ in front and round only to 2 decimals places?
Thanks!
In my report ......In some cases there is information to populate a section in others there is nothing, is there a way to have the section reduced if there is no data in it?
I keep getting this error message when I open my report. My report works for all my others that have the exact fields. What does this error msg mean?
"This expression is typed incorrectly or it is too complex to be evaluated"
Well, it sounds like you might have something else on the report that is causing an issue (a DLookup, DSum, an IIF or something).
The only equation I have in the report is this =Sum(Nz([Total Cost],0)) I do not have anything else, the rest are just text or currency fields.
Is [Total Cost] the name of a field from the query underlying the report?