Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Report Design
Topic: Formula returns of '0'
Author
Message
paulizorama
Newbie
Joined: 17 Dec 2009
Location: United Kingdom
Online Status: Offline
Posts: 14
Topic: Formula returns of '0'
Posted: 23 Jan 2010 at 3:15pm
Hi
If I have a field count or sum that has a nil total - how can I get it to:
a) print the numeral '0' in the report - as opposed to a blank field result - when the count/sum is zero
but
b) return the actual count/sum value when it is greater than zero?
with thanks
pauliz
IP Logged
vltowell
Newbie
Joined: 24 Jan 2010
Location: Australia
Online Status: Offline
Posts: 2
Posted: 24 Jan 2010 at 4:48pm
try this:
If x is the field you are doing the count or sum for
if isnull(x) then 0 else x;
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.