Click here to Skip to main content
15,886,770 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear,

I have following Records
HTML
Student-ID Date  Status
10          3/6     A
10          3/7     P
10          3/8     P
10          3/9     L
 
11          3/6     P
11          3/7     P
11          3/8     A
11          3/9     P


I want to count all records of a specified Student which has the Status "P".
I used group as Student-ID
and added formula to evaluate

{Status} = "P"

and reset by Group

but no correct result.

Please help.
Posted

you basically create a formula field like:
C#
if {mytable.field} = 'P' then
 {mytable.field};

then
C#
count({formula});


or use running totals with an evaluation formula:
C#
{mytable.field} = 'P'
 
Share this answer
 
Have a look: Using Formula in Crystal Report[^]. It's step by step tutorial.
 
Share this answer
 
My Problem solved.

I created SQL View and then added fields from view to Crystal Report, nd hence the formula worked.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900