I think the best way to accomplish this is to just use Print When logic in all the objects in the Header and Footer bands to suppress when applicable. The only risk you run is having a blank page at the end if the details end up close to the bottom of the page. The report writer will still think it needs to print the footer so it will go to the next page, only to find out it has nothing to print.
Cathy Pountney, Microsoft Visual FoxPro MVP Memorial Business Systems, Inc. (www.mbs-intl.com)