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

Report Header record count

Status
Not open for further replies.

MadCatmk2

Programmer
Oct 3, 2003
145
GB
Hi all

Crystal 8
SQL Server

This hopefully will be a simple one for someone to answer. I have a report which lists calls from a helpdesk system. Is it possible for a count of all the records to be shown in the report header. I have tried doing this with a running total but i never get the value showing in the header. If anyone can shed some light on if this is possible or not and how to go about doing it if so.

Thanks in advance.
 
I think you can just use:

Insert / Field Object / Special Objects / Record Number
 
write a formula to count the records:

if not isnull({AnyRequiredField}) then 1 else 0

Perform a simple grand total of this formula. You can suppress the formula and the grand total if so desired.

The create a second formula to be placed in the page header:

WhilePrintingRecords;
Numbervar DispTotCount:=Sum ({@YourFormulaField})

viola! Grand total count in the page header.

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
You should be able to insert a grand total (count) on a recurring field (one that cannot be null) and then drag this into the report header.

-LB
 
thanks for all your help guys. Got it working.

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top