Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group Header or Group Footer

Status
Not open for further replies.

teknogeek9

Programmer
Jan 6, 2001
47
US
Is there a way of determining whether you are in a group header or group footer with 1 formula?
For example,
if GROUPHEADER then "I am the top"
else
if GROUPFOOTER then "I am the bottom"

 
Put this formula in both your header and footer for the same group.

whileprintingrecords;
numbervar headfoot;
headfoot:=headfoot+1;
if remainder(headfoot,2) = 1 then "Header" else "Footer"

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top