There's an easier way:
not InRepeatedGroupHeader
This method will work even when you're not resetting the page number with every group.
Also, to do it your way, you don't need a variable. Since the first part of your if statement already evaluated to true or false, you could use just "PageNumber = 1" in the suppress formula.
-Dell