Wiz47
Learning by inches ...
- Local time
- Today, 11:43
- Joined
- Nov 30, 2006
- Messages
- 274
I need to average a set of values in a report based on the number of records displayed. That number will change depending on the report parameters. I plan to use a statement like the following:
Textbox Name "TotalCount"
Then reference that in the footer with
The issue I'm having is that I'm not able to capture the record count as it occurs. I normally count records using the following convention.
"RecordCount" (name of the unbound textbox)
(in detail section as a hidden textbox)
Then
in the footer.
Naturally, this doesn't work when I reference it in the first code for the average calculation as it asks me for the RecordCount number.
Textbox Name "TotalCount"
Code:
=sum([myfield]) / Sum([RecordCount])
Then reference that in the footer with
Code:
=TotalCount
The issue I'm having is that I'm not able to capture the record count as it occurs. I normally count records using the following convention.
"RecordCount" (name of the unbound textbox)
Code:
=1
Then
Code:
= RecordCount
Naturally, this doesn't work when I reference it in the first code for the average calculation as it asks me for the RecordCount number.