Use the field used, not the groupname field, not sure why you elected to use that, mine showed using the {table.groupfield}, not the groupname function.
I guess you should use the page header/footer suppression.
Create 2 of each, and conditionally suppress based on whether the previous or next group differs. This means right clicking the section, selecting format section->X2 next to suppress and in the header use:
New group (page header section a):
previous({table.group}) = {table.group}
Continuing group (page header section b):
previous({table.group}) <> {table.group}
For the page footers:
New group (page footer section a):
next({table.group}) <> {table.group}
Continuing group (page footer section b):
next({table.group}) = {table.group}
That should get you close.
-k