Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: How to get data in a given month Post Reply Post New Topic
Author Message
thompa1717
Newbie
Newbie
Avatar

Joined: 22 Sep 2011
Location: United States
Online Status: Offline
Posts: 2
Quote thompa1717 Replybullet Topic: How to get data in a given month
    Posted: 27 Sep 2011 at 6:07am
Not sure if this is the best way or not but I'm trying to determine the number of employees in a given month currently I am using this.

If ({Employee.TERM_DATE} > Date (2011, 01, 31) or

{Employee.DATE_HIRED} <= Date (2011, 01, 31))

and

{Employee.TERM_DATE}= DateTime (2001,01,01) then 1 else 0

Then Sum this variable up... is there a better way?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 27 Sep 2011 at 7:55am

if you want to go this route i usually use

if (isnull(termdate) or termdate>date(2011,1,1))
and
hiredate<date(2011,1,31) then 1
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.016 seconds.