Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: case select / dates Post Reply Post New Topic
Author Message
Lord Yorkshire
Newbie
Newbie
Avatar

Joined: 04 Jul 2010
Online Status: Offline
Posts: 28
Quote Lord Yorkshire Replybullet Topic: case select / dates
     Posted: 08 Jul 2013 at 12:02am
i have a problem with a report that uses the average number of working days within a month. this date varies between plants who have different shift patterns. After trying several forumulaes, i have deceided the simplest way is
select currentdate
 
case 08/07/2013:5
case 09/07/2013:6
 
etc
 
however i can not get crystal to accept the 08/07/2013 as a date.
 
I have tried several version, can anyone advise what i am doing wrong.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 09 Jul 2013 at 4:55am
why not convert the date to a string instead...
totext({table.field}, "dd/MM/yyyy")

just a thought
HTH
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