Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Force Label for NULL fields Post Reply Post New Topic
Author Message
JWaldmann
Newbie
Newbie


Joined: 01 Dec 2016
Online Status: Offline
Posts: 13
Quote JWaldmann Replybullet Topic: Force Label for NULL fields
    Posted: 09 Dec 2016 at 4:15am
I am making a monthly parameterized report of work orders opened for each Department. I am using the field CLSDBY to do a count of WOs by each technician. When a work order has yet to be closed in the month for which I am reporting the CLSDBY field is NULL. This is messing with the results as I have a blank in the technician list with the count of Tasks that are still open.
I would like to force the String “Open” for the work orders that have not been closed. Can anyone give me a hand with this?

Thanks in advanced.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 12 Dec 2016 at 3:08am
how are you getting the count?
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 12 Dec 2016 at 3:48am
Try this:

1. Create a formula that looks something like this:

{@WO}
if IsNull({CLSDBY}) then 'Open' else {CLSDBY}

2. Count the formula instead of the field.

-Dell
IP IP Logged
JWaldmann
Newbie
Newbie


Joined: 01 Dec 2016
Online Status: Offline
Posts: 13
Quote JWaldmann Replybullet Posted: 12 Dec 2016 at 4:42am
I managed to work that out last Friday; however, I really appreciate your response!!!   How I did it was exactly the way you indicated I should.

Question; how do I count the formula instead of the WO field?
IP IP Logged
JWaldmann
Newbie
Newbie


Joined: 01 Dec 2016
Online Status: Offline
Posts: 13
Quote JWaldmann Replybullet Posted: 12 Dec 2016 at 4:57am
To DBlank,

Hey, thanks for the reply. I have it figured out.
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3701
Quote hilfy Replybullet Posted: 12 Dec 2016 at 10:42am
You would do it the same way that you're counting the number of work orders now, except use the formula instead of the field.

-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.031 seconds.