?
Solved

Query for specific days within a date range in Crystal Reports XI

Posted on 2011-10-05
2
Medium Priority
?
274 Views
Last Modified: 2012-05-12
Hello Experts,
I am working on a Crystal Report (version XI) that queries an Oracle database. The report is pulling records from the database that have a date field that falls within a specified date range. I need to pull these records within the specified date range, but only for dates that fall on a Monday, Tuesday, or Wednesday. Is it possible to query for specific days in the record selection statement?  Thanks.
0
Comment
Question by:jsmith08
2 Comments
 
LVL 18

Accepted Solution

by:
UnifiedIS earned 2000 total points
ID: 36920375
Use the DatePart function
DatePart("w", yourdatefield) IN [2,3,4]

w = weekday
crystal uses 1-7 to describe the days of the week,  You may have to adjust the 2,3,4 to get the right days depending on how you have the firstDayOfWeek configured within CR
0
 

Author Closing Comment

by:jsmith08
ID: 36920419
Perfect!!  Thank you.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Loops Section Overview
Screencast - Getting to Know the Pipeline
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question