Click here to Skip to main content
14,300,422 members
Rate this:
Please Sign up or sign in to vote.
See more:

In my crystal reports I have a field called "PAYMENT" it has to be displayed according to the following requirement

REQUIREMENT

1.if there is only one RECORD in detail section then it has to display,

PAYMENT=percentage in report header

2.if there are MULTIPLE RECORDS in detail section then it has to display,

PAYMENT=percentage+(percentage(total value))+remarks in report header

can anyone please tell me how to do this?


What I have tried:

if recordnumber = 1 then 
{Command.PAYMENT_TERM}
else ({Command.PAYMENT_TERM} & {@l_percentage})
Posted
Updated 5 days ago
v3

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

what you want is the count of record in the report? right? Then use count(fieldname)

Count ({Table.Value})
   
Comments
Member 14546532 5 days ago
   
Where should I place this Count({Table.Value})?

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100