Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Multiple database fields Post Reply Post New Topic
Author Message
treegirl97
Newbie
Newbie


Joined: 04 Nov 2009
Online Status: Offline
Posts: 1
Quote treegirl97 Replybullet Topic: Multiple database fields
     Posted: 04 Nov 2009 at 10:39am
Hello all, hopefully someone can help me out here.  I've got a column in my report that has data coming from two fields within the database and I'm not sure how to show this in my table.
 
To clarify, the column to be populated in my report is called "Length of Occupancy".    In my database table, the value for this column can come from two fields: OVER_90_DAYS or LESS_90_DAYS.  They are populated with y or n.  The one that is set to 'y' needs to be displayed in the table.
 
How do I get the Length of Occupancy column to show the text "Over 90 days" or "Less than 90 days"?  I hope this makes sense to someone.  Thanks.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 04 Nov 2009 at 10:49am
If table.OVER_90_DAYS='y' then 'Over 90 days' else if
table.LESS_90_DAYS='y' then 'Less then 90 days'
else 'ERROR-Neither way identified'
 
The last Else is optional but a way to look for data errors.


Edited by DBlank - 04 Nov 2009 at 10:49am
IP IP Logged
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