How to show the total number of records at the end of the page

14.7k Views Asked by At

I would like to show total number of records at the end of the page using Crystal Reports. If there are no records I would like to display the count as 0.

2

There are 2 best solutions below

1
On

Well, one thing you can do is add a field to the resultset that is the count of the number of the records in the result set.

It may not be the prettiest solution; the count has to appear in every row returned. When I last used Crystal Reports (pushing two years ago now), I don't recall a single report being capable of handling results from multiple data sources.

0
On

If you don't feel like clicking, here is the solution provided:

"Change Summary operation" and using the "Count" field
is a formula : count({your filed})
if no rows, count({your filed}) will return null.
so, you can create a new formula filed to replace your Σ 。
the formula: if isnull(count({your filed})) then 0 else count({your filed})