Only one ON LAST ROW control block is permitted in a report. Find the other ON LAST ROW control blocks, and combine their statements into one block.