J
Jody
I am executing code inside the Detail_Format() Subroutine
of a subreport. In this subroutine I am performing some
complicated calculations where I sum up values from
several different fields based on certain criteria, so I
cannot simply use the SUM() type functionality that Access
offers. Anyways, it is looping through each record in the
query that the subform is bound to twice. It will go
through every record in the recordset once, where
everything is working correctly, but it will then run
through it a second time, without re-firing the
report_open or report_close events. Therefore, my global
variables are not being reset, and my calculations are
being thrown off. So to sum it up, has anyone else had
the problem where a subreport's Detail_Format event is
being called twice instead of only once?
Any help would be greatly appreciated.
Jody
of a subreport. In this subroutine I am performing some
complicated calculations where I sum up values from
several different fields based on certain criteria, so I
cannot simply use the SUM() type functionality that Access
offers. Anyways, it is looping through each record in the
query that the subform is bound to twice. It will go
through every record in the recordset once, where
everything is working correctly, but it will then run
through it a second time, without re-firing the
report_open or report_close events. Therefore, my global
variables are not being reset, and my calculations are
being thrown off. So to sum it up, has anyone else had
the problem where a subreport's Detail_Format event is
being called twice instead of only once?
Any help would be greatly appreciated.
Jody