Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: How to get data in a given month
Oldest Post First
Newest Post First
Author
Message
thompa1717
Newbie
Joined: 22 Sep 2011
Location: United States
Online Status: Offline
Posts: 2
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 Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
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 Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.