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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group footer formula

Status
Not open for further replies.

Bruni007

Technical User
Joined
May 29, 2006
Messages
20
Location
CA
Crystal Reports 9
DB2

My report is grouped by hostname and in the group footer of the report, there is a field which is adding the hostnames in a string

stringvar string1;
string1 := string1 + HOSTNAME + "^";

it works fine except that when I display the value in the report footer, the last hostname is displayed twice at the end of the string

server#1^server#3^server#7^server#9^server#9^

it should display only: server#1^server#3^server#7^server#9^

I've tried to put the formula in the group header, but it is giving me the same result

I don't understand why it adds the last one twice...
any idea?
 
Are you grouped on that server field so you only get a unique value back for it? The "^" might also be a reserved character, can you use something else instead of that?
 
Your formula is for accumulation. You need a different formula for display in another section, otherwise the new section causes the formula to execute again and accumulate another instance:

whileprintingrecords;
stringvar string1;

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top