Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about a date range in record selection

Status
Not open for further replies.

jj1576

MIS
May 21, 2008
69
US
Hi,

I'm using Crystal Reports 10 & I'm trying to have my report select results from the testdate field that were taken in the current quarter. Thanks.

 
You could use:

datepart("q",{table.testdate}) = datepart("q",currentdate) and
year({table.testdate}) = year(currentdate)

Better yet (for speed), set up each element of the above as a SQL expression, e.g., {%testqtr}:

{fn quarter(`table`.`testdate`)}

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top