I have a report based on a parameter query and I want to count the records returned by the query.
I am using a calculated field in the report header to count the number of records returned. The query works fine every time. I always get a #error every time in the calculated field on the report. Here's what I've tried in the calculated field.
resnumber is the field to count
breakfast is the query name
=dcount("[resnumber]","breakfast")
=dcount("[resnumber]","[breakfast]")
=count(*)
Any help would be appreciated. The report and query can be redesigned completey if necessary