T
Thomas Kroljic
I have a report that contains the following sections: detail, Group
Header/Footer1, and Group Header/Footer2. As my detail records are printed,
I have vba code behind the report that keeps a running total of a specific
field if such conditions are met. When the Group Footer2 section prints, I
use vba code to display this total (move to an unbound text box) and
reinitialize the memory variable. This appears to work except I noticed that
it doesn't under the following conditions: after the detail records are
printed, when it goes to print the Group Footer2 section, if it doesn't have
enough room, it's execute the vba code (display total and initialize memory)
twice. The first time is when the report finishes printing the detail lines
and determines that it can not fit the Group footer2 on the same page, and
again when the report goes to the next page. Problem is, when it does go to
the next page and attempts to display my totals, at this point the total is
0 because the first time it executed the event GroupFooter2_format and
realized it would not fit on the current page, it initialize the variable
holding the total.
Any help or suggestion in this matter would be greatly appreciated.
Thomas j. Kroljic
Header/Footer1, and Group Header/Footer2. As my detail records are printed,
I have vba code behind the report that keeps a running total of a specific
field if such conditions are met. When the Group Footer2 section prints, I
use vba code to display this total (move to an unbound text box) and
reinitialize the memory variable. This appears to work except I noticed that
it doesn't under the following conditions: after the detail records are
printed, when it goes to print the Group Footer2 section, if it doesn't have
enough room, it's execute the vba code (display total and initialize memory)
twice. The first time is when the report finishes printing the detail lines
and determines that it can not fit the Group footer2 on the same page, and
again when the report goes to the next page. Problem is, when it does go to
the next page and attempts to display my totals, at this point the total is
0 because the first time it executed the event GroupFooter2_format and
realized it would not fit on the current page, it initialize the variable
holding the total.
Any help or suggestion in this matter would be greatly appreciated.
Thomas j. Kroljic