SteveFairclough
IS-IT--Management
I'm trying to create a view in SQL Designer that looks at the minimum date of a field in my table for each reference to a ClaimID field. The SQL I'm trying to use is as follows :-
SELECT ClaimProgress.ClaimID, Min(IIf([ClaimProgress]![Status] In ("NEW","NOTIFIED"
,[ClaimProgress]![DateTime])) AS StatusNew
FROM ClaimProgress
WHERE ClaimProgress.Status In ("NEW","NOTIFIED"
GROUP BY ClaimProgress.ClaimID;
My problem is that I get an error message stating the following :-
ODBC Error:[Microsoft][ODBC Mircosoft Access Driver] Too few parameters. Expected 8.
I'm sure it's because I haven't included a statment for the "false" part of the IIf function. But the reason I've left that blank is because I want a blank field to be displayed is there is no minimum date for that group of records.
I've built the statement in Access's Query Designer as I'm very new to the Crystal SQL designer.
Maybe somebody could give me a clue as to what syntax to use if I have to put something in the "false" part of the IIf function.
I hope I've explained that OK. I'd be grateful for any help anybody has to offer.
Thanks
Steve Fairclough
I.T. Manager
SELECT ClaimProgress.ClaimID, Min(IIf([ClaimProgress]![Status] In ("NEW","NOTIFIED"
FROM ClaimProgress
WHERE ClaimProgress.Status In ("NEW","NOTIFIED"
GROUP BY ClaimProgress.ClaimID;
My problem is that I get an error message stating the following :-
ODBC Error:[Microsoft][ODBC Mircosoft Access Driver] Too few parameters. Expected 8.
I'm sure it's because I haven't included a statment for the "false" part of the IIf function. But the reason I've left that blank is because I want a blank field to be displayed is there is no minimum date for that group of records.
I've built the statement in Access's Query Designer as I'm very new to the Crystal SQL designer.
Maybe somebody could give me a clue as to what syntax to use if I have to put something in the "false" part of the IIf function.
I hope I've explained that OK. I'd be grateful for any help anybody has to offer.
Thanks
Steve Fairclough
I.T. Manager