Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: records not showing for blank or null field Post Reply Post New Topic
Author Message
Pyrotecnix
Newbie
Newbie
Avatar

Joined: 24 Jun 2010
Online Status: Offline
Posts: 16
Quote Pyrotecnix Replybullet Topic: records not showing for blank or null field
    Posted: 08 Jul 2010 at 7:50am
Hello I am using crystal reports xi and here is the problem I'm running into I'm trying to display a string from my database but for some records they might not have a record from the other table associated with it or it may just have a space in it. when I ran a test on the field it was showing as a null field for these empty records. My issue is I have checked the box that tells crystal to treat all and other fields that are null as default so for string it should be '' or empty and still display the record when I drop that field into the detail area. The problem is when I drop either the field or a formula to check to see if the field is null or empty I loose records. Like before I drop the field or formula on the report it shows 12 records when I put the field or formula using the field on the report it then only shows 7 of the 12 records. I'm trying to have it say if the 5 records that are not showing if those fields are blank or null then show the other field but if both are blank display NA.

Any advise would be much appreciated, thanks in advance.

Edited by Pyrotecnix - 08 Jul 2010 at 7:52am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 08 Jul 2010 at 8:04am
It has to do with your join and likely your select statement.
Crystal does not enherently enforce the join (like in SQL) but rather enforces it if you set it up to do so or when you use a field from the table.
IP IP Logged
Pyrotecnix
Newbie
Newbie
Avatar

Joined: 24 Jun 2010
Online Status: Offline
Posts: 16
Quote Pyrotecnix Replybullet Posted: 08 Jul 2010 at 8:11am
you are the man I had a feeling I was using the wrong type of join but wasn't to sure and you confirmed it. I needed to change from a left join to a full outer join. Thanks for your help.
IP IP Logged
jcooper1784
Newbie
Newbie
Avatar

Joined: 12 Jun 2017
Location: United States
Online Status: Offline
Posts: 1
Quote jcooper1784 Replybullet Posted: 05 Jan 2018 at 8:23am
This solution just helped me out on a report I was building as well THANKS!!!!
James B Cooper
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.015 seconds.