LarryDeLaruelle
Technical User
I have set up two accumulators to count records based on the value of one of the report's fields.
The two variables (integers) are declared as module level and are initialized in the Report_Open event to zero.
In the Detail_Format event I have an if then statement testing for a null value; if not null add one to the accumulator; else no action. I also increment a general accumulator to count each record.
In the ReportFooter_Format event I assign the values of the two accumulators to text controls in the report footer section and assign one percentage calculation to a third control. These three text controls and one label control are the only controls in the report footer.
For some reason, the ReportFooter_Format event is triggering twice. On the first pass, the values are correct; on the second pass, the values are doubled.
The record source query has one calculated field using an immediate If and one function call.
Can anyone explain why the ReportFooter_Format event is triggering twice?
Thanks in advance.
Larry De Laruelle
The two variables (integers) are declared as module level and are initialized in the Report_Open event to zero.
In the Detail_Format event I have an if then statement testing for a null value; if not null add one to the accumulator; else no action. I also increment a general accumulator to count each record.
In the ReportFooter_Format event I assign the values of the two accumulators to text controls in the report footer section and assign one percentage calculation to a third control. These three text controls and one label control are the only controls in the report footer.
For some reason, the ReportFooter_Format event is triggering twice. On the first pass, the values are correct; on the second pass, the values are doubled.
The record source query has one calculated field using an immediate If and one function call.
Can anyone explain why the ReportFooter_Format event is triggering twice?
Thanks in advance.
Larry De Laruelle