OK... I figured this out.... I'm not sure if it is the right way but it worked:
In the report header, make a formula field that declares a numbervariable:
global numbervar x;
In the group header, make a formula that resets the numbervariable to 0:
global numbervar x;
whileprintingrecords;
x := 0;
Then in the detail section, make aformula that increments the variable by 1:
global numbervar x;
whileprintingrecords;
x:=x+1;
then put the groupname field in the dtails section and use this to suppress it if it is not the frist record:
global numbervar x;
if x = 1 then false else true;
Maybe I'm missing something, but I think you have two other
options without using a print time formula:
1-Group {yourgroupfield} and also put {yourgroupfield} in the details section. Suppress the group header. In the details section, format {yourgroupfield} by checking "suppress duplicates." Or,
2-Group {yourgroupfield} and in the format group section editor, check "underlay following section" for the group header section. Details will then print in line with the group header.
Like a said at the top of my second post, I didn't know if that was the right way (or best way) to do that. Your way looks much simpler... For that, you get a star... I'll keep those ideas in mind for future reference...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.