In CRYSTAL REPORTS 9, I am using the following formula (@lastquarter) to select records based on true:
f Month(Today) >=1 and Month(Today)<=3 then
(Year({SERVICE_CALL.CREATE_DT}) = Year(Today)-1 AND Month({SERVICE_CALL.CREATE_DT}) in [10,11,12])
Else
If Month(Today) >=4 and Month(Today)<=6 then
(Year({SERVICE_CALL.CREATE_DT}) = Year(Today) AND Month({SERVICE_CALL.CREATE_DT}) in [1,2,3])
Else
If Month(Today) >=7 and Month(Today)<=9 then
(Year({SERVICE_CALL.CREATE_DT}) = Year(Today) AND Month({SERVICE_CALL.CREATE_DT}) in [4,5,6])
Else
If Month(Today) >=10 and Month(Today)<=12 then
(Year({SERVICE_CALL.CREATE_DT}) = Year(Today) AND Month({SERVICE_CALL.CREATE_DT}) in [7,8,9])
How do I get the title to print:
"October 1, 2004 to December 31, 2004"
My standard:
Totext (minimum({SERVICE_CALL.CREATE_DT}) to maximum..... only prints the actual date of the service call create date which may not necessarily fall on Oct 1 - Dec 31.
f Month(Today) >=1 and Month(Today)<=3 then
(Year({SERVICE_CALL.CREATE_DT}) = Year(Today)-1 AND Month({SERVICE_CALL.CREATE_DT}) in [10,11,12])
Else
If Month(Today) >=4 and Month(Today)<=6 then
(Year({SERVICE_CALL.CREATE_DT}) = Year(Today) AND Month({SERVICE_CALL.CREATE_DT}) in [1,2,3])
Else
If Month(Today) >=7 and Month(Today)<=9 then
(Year({SERVICE_CALL.CREATE_DT}) = Year(Today) AND Month({SERVICE_CALL.CREATE_DT}) in [4,5,6])
Else
If Month(Today) >=10 and Month(Today)<=12 then
(Year({SERVICE_CALL.CREATE_DT}) = Year(Today) AND Month({SERVICE_CALL.CREATE_DT}) in [7,8,9])
How do I get the title to print:
"October 1, 2004 to December 31, 2004"
My standard:
Totext (minimum({SERVICE_CALL.CREATE_DT}) to maximum..... only prints the actual date of the service call create date which may not necessarily fall on Oct 1 - Dec 31.