Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: How to Display report data based of a date field Post Reply Post New Topic
Author Message
flintwood
Newbie
Newbie
Avatar

Joined: 31 Jul 2010
Online Status: Offline
Posts: 16
Quote flintwood Replybullet Topic: How to Display report data based of a date field
    Posted: 31 Jul 2010 at 3:11pm
I have a customer report that displays cust#, address, site#, deliveries ona weekly basis. There is a parameter which is named "Service Status" and we type in "Active" or "Stopped Service" or "Both" to show customer info. There is no date field in any of the columns but the the selection criteria is referenced to a date field in the database, so meaning if there is no date value in the database "Active is chosen and if there are date values in the database then "Stopped service" is chosen and if "Both" is chosen then it has all the date values. My question is what kind of formula do you write for a parameter with string based selections using a date field? The parameter is not supposed to show a date field either, so I am lost in this case. so the customer data is based of a date field, but no date field is shown in the parameter or report columns. the date field to be used has null values and thats where its "Active".Hope somebody can help and will be greatly appreciated.
FW
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 01 Aug 2010 at 6:17am
if i understand you correctly it would be something like;
({param?}='Both'
or
({param?}='Active' and isnull({table.datefield}))
or
({param?}='Stopped service' and not (isnull({table.datefield})))
)


Edited by DBlank - 01 Aug 2010 at 6:18am
IP IP Logged
flintwood
Newbie
Newbie
Avatar

Joined: 31 Jul 2010
Online Status: Offline
Posts: 16
Quote flintwood Replybullet Posted: 02 Aug 2010 at 9:50am
Thanks alot for the reply and the solution. I will try it out and see what I get.
FW
IP IP Logged
flintwood
Newbie
Newbie
Avatar

Joined: 31 Jul 2010
Online Status: Offline
Posts: 16
Quote flintwood Replybullet Posted: 02 Aug 2010 at 11:10am
@DBlank...it worked!...Many Thanks to you Buddy!
FW
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.