Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8608

How to write multiple actions in if else crystal reports

$
0
0

Hello

 

I'm tyring to write following code in a formula and its throwing error. Can someone help in this. I need a count variable to count the number of lines printing in the detail to add to string that is being used in trailer.

 

Shared Numbervar count;

 

 

if {APY2055.PYMNT_STATUS} ='P' THEN

('300'+{@transit_nbr} + right({@account_number},7) + {@check_number} + {@check_amount}+ {@Client_ref_space} +{@filler_53to60}+{@check_dt}+ {@filler_67to80};

count:=count+1)

 

 

ELSE IF {APY2055.PYMNT_STATUS} ='S' THEN

('311'+{@transit_nbr} + right({@account_number},7) + {@check_number} + {@check_amount}+ {@Client_ref_space} +{@filler_53to80};

count:=count+1)

 

Thanks

Mano


Viewing all articles
Browse latest Browse all 8608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>