how to count the number of row and use the number in another formula

I want count the number of rows, also I want use that number in my formula. I can use insert summary to get the number, but I do not know how I can use that number in my another formula. I do not need the number of rows on my report, but I need that number to calculate the formula.

Is there another way I can count the rows? Thanks!

[450 byte] By [cjcclee] at [2008-1-7]
# 1

in Formula Editor

Use

Count(Filed) this will give you the row count.But it also depends how you use it like whether you use it while reading records or while printing.

captJackSparrow at 2007-10-2 > top of Msdn Tech,Visual Studio,Crystal Reports for Visual Studio...
# 2

Thank you very much.

count(Field, group) It resolve the problem.

cjcclee at 2007-10-2 > top of Msdn Tech,Visual Studio,Crystal Reports for Visual Studio...

Visual Studio

Site Classified