RYankowitz
Programmer
- Jun 13, 2000
- 27
I have a report which generates a client statement, showing multiple records (one per invoice). Because I need to manipulate and make some decisions about the fields before displaying them, I must use some VB code in the Format event.<br><br>As usual with statments, I need totals for each field. Because the fields are now unbound controls, I can't use the SUM() function to add them all up at the end of the report. I am manually adding them within the Format event and displaying them in the report footer.<br><br>This all works fine as long at the report doesn't run to a second page. When it does, the sums are incorrect. The report is adding the first record of each page (past the first) twice.<br><br>Easy! you say. Access is Retreating upon finding that the next record on the page won't fit - so I should use the Retreat event to correct the miscount. But it's not! The Retreat event is not occurring. I put a breakpoint in the code of the Retreat event. The breakpoint never triggers.<br><br>I feel like retreating to the North Woods.<br><br>Any help would be greatly appreciated.