Click here to Skip to main content
15,897,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to Crystal Reports. I need help with a silly problem. I have a group Section where I am counting items grouped by date. On the group footer, I am counting records on the summary. But if there is only one item on that group, I want to show "Item" instead of "Items". For example:

Date....  	AgentID	Reports	
12/3/2014	A10250	3	
........	B15210	4	
........		7-Reports
			
12/4/2014	A10250	1	
.........		1-Report


Is there an easy way of doing it?
Posted
Updated 3-Sep-14 13:39pm
v2

1 solution

I am using Crystal Reports 8.5 and realized that field must be Formula Field not a text field.

Here is the formula I used which works for me.

"Report"+ if Count ({proc_CrystalReport_Agent_SummaryReport.ReportID}, {proc_CrystalReport_Agent_SummaryReport.ExtractFileName}) >1 then "s" else ""
 
Share this answer
 
Comments
Maciej Los 17-Sep-14 16:46pm    
+5

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