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

I want record number 1 in the group footer

Status
Not open for further replies.

pleashelp

Technical User
Feb 27, 2002
97
US
I have a field called Starting amount in the details section. Now I want to show only the first record in the group footer, not a total of the details. Is this possible?
 
Place your database field in the group HEADER, not footer, and you will get the first record of the group automatically.

If your first record of the group must be in the footer, you will have to use a variable to capture this. If you need help with the formula, let me know.

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
dgilsdorf@trianglepartners.com
 
In the Group header place the following formula

@CaptureFirstValue (Suppressed)

NumberVar S_Amount;

if onFirstRecord then
S_Amount := {Table.StartingAmount};



In the footer place the following display formula

@DisplayFirstValue

NumberVar S_Amount;

"This is the Starting Amount: " + Totext(S_Amount,2)



Jim Broadbent
 
Ok. Thanks for the responses. I did as ngolem suggested. So.. the correct first record shows in the first group header, but in every other group, a 0.00 shows. And in the group footer I get a 0.00 in every group. Any further thoughts as to what I might be doing wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top