Print Page | Close Window

How to count records in a page which are in detail

Printed From: Crystal Reports Book
Category: General Information
Forum Name: Announcements
Forum Discription: Please check this section for the latest announcements from Crystal Reports Forum
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=11297
Printed Date: 04 May 2024 at 7:32am


Topic: How to count records in a page which are in detail
Posted By: sruthi
Subject: How to count records in a page which are in detail
Date Posted: 01 Oct 2010 at 3:58am
Hi

Is there a option to count records in detail section and so that based on that can apply a formula.



Replies:
Posted By: arunvisak
Date Posted: 02 Mar 2012 at 7:40pm
Hi.

You can use a running total formula or u can just use a formula...count({fileld})

In the formula place any one field from details section.

or if u require page wise record count then u have to create 3 formulas.

1.header:-(place it in page header)

whileprintingrecords;
numbervar x;
x := 0;

2.details:-(place it in details section & u can supress it)

whileprintingrecords;
numbervar x;
x := x +1;

3.footer:-(place it in page footer)

whileprintingrecords;
numbervar x;
x

Hope it helps you.
D.A.V



Print Page | Close Window