JEMorrison
Technical User
I'm getting a "The remaining text does not appear to be part of the formula." error in my record selection formula (CR8 reporting against an Access 2000 DB) when I attempt to use the following Select Case function (Crystal syntax). The 'remaining text' is the actual selection formula (last two lines of code).
I've only been using CR for about 6 months so any advice about what I'm doing wrong is appreciated.
Thanks,
Jamie
I've only been using CR for about 6 months so any advice about what I'm doing wrong is appreciated.
Thanks,
Jamie
Code:
Local DateTimeVar EndDate;
Local DateTimeVar BegDate := DateSerial(Year(CurrentDate) - 1, 1, 1);
select DatePart ("q",CurrentDate)
case 1:
EndDate := DateSerial(Year(CurrentDate), 1, 1)
case 2:
EndDate := DateSerial(Year(CurrentDate), 4, 1)
case 3:
EndDate := DateSerial(Year(CurrentDate), 7, 1)
case 4:
EndDate := DateSerial(Year(CurrentDate), 10, 1)
default:
EndDate := DateSerial(Year(CurrentDate), 1, 1);
{FaceSheet_vw.Date Received} in [BegDate to_ EndDate] and
{FaceSheet_vw.Type of Complaint} <> ["Grievance","Informal Comp"]