Your problem is one of grouping and paging, not of syntax. A Page footer isn't smart enough to know what's "above" it, physically. (A report footer is - EVERYTHING is above it...)
Your best bet is to GROUP your details, and advance to a new page for each group, and then you can place...