I have made a report that lists permits issued, which is broken down by county. It works fine. At the top of the report (in the Report Header section), I use a domain aggregate function to get a total of all the permits in the time range. To be prcise, the formula is:
="A Total of " & DCount([Region],"General Permits","[IssueDate] >= [BeginDate] and [IssueDate] <= [EndDate]") & " Permits were Issued During this Period"
Note[Region] just happens to be a field that is never null)
This works fine too.
Here's the thing. I'm doing a summary only version of the report, that just shows the total number of permits by county, but doesn't list them. Hence, I have eliminated the Detail section of the report. All other things stay the same. Suddenly the domain aggregate function returns zero. I can put the Detail section back in even with no objects in it, and voila, the function again returns a value. Since there are lots of permits, even using the tiniest allowable height for the Detail section causes unacceptable distortion to the layout.
Why would such a thing happen and how can I work around it?
="A Total of " & DCount([Region],"General Permits","[IssueDate] >= [BeginDate] and [IssueDate] <= [EndDate]") & " Permits were Issued During this Period"
Note[Region] just happens to be a field that is never null)
This works fine too.
Here's the thing. I'm doing a summary only version of the report, that just shows the total number of permits by county, but doesn't list them. Hence, I have eliminated the Detail section of the report. All other things stay the same. Suddenly the domain aggregate function returns zero. I can put the Detail section back in even with no objects in it, and voila, the function again returns a value. Since there are lots of permits, even using the tiniest allowable height for the Detail section causes unacceptable distortion to the layout.
Why would such a thing happen and how can I work around it?