Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I WANT TO Sum a field i crystal report if field IS NULL then sum field is show 0.00 format

What I have tried:

I WANT TO Sum a field i crystal report if field IS NULL then sum field is show 0.00 format
Posted
Updated 26-Jun-16 22:28pm
Comments
Maciej Los 27-Jun-16 3:46am    
"I want to..." is not a question at all!

1 solution

You can try this Links:-
To add the custom function to a Crystal report[^]
Creating Your Own Custom Functions - Crystal Reports 10: The Complete Reference[^]

In Crystal Report there is IsNull() function to check the value is null or not, this links are for IsNull function:-
IBM Knowledge Center[^]
Crystal Reports Custom IsNull Function - Stack Overflow[^]

I hope this links will help you..
 
Share this answer
 
Comments
Member 12556431 27-Jun-16 5:56am    
Help me for this Sum a field in crystal report if field IS NULL then sum field is show 0.00 format
JayantaChatterjee 27-Jun-16 6:23am    
right now I'm not having the Crystal report..
the code will be like this:-
if IsNull({reportFieldName}) then
0
else
{reportFieldName}

after this code added to function, you have to add this function to the report, then add a summery fields and select this function Name with sum function in the report..
Member 12556431 27-Jun-16 6:34am    
sir thanks but it is not work
JayantaChatterjee 28-Jun-16 0:58am    
what have you tried ??
did you create the function with the above code, and then drag and drop the function into your crystal report from the "Field Explorer"?
Member 12556431 28-Jun-16 3:10am    
Thank you Jayanta Chatterjee Sir it is work for me, lots of thanks to you sir.

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