Aug 26, 2009 #1 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.
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.
Aug 26, 2009 #2 lbass Technical User Feb 9, 2002 32,816 US 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 Upvote 0 Downvote
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