I made a report concept from a simple query that contain as follow
When I click the view button, the query shows the date and the reasons record. Well, I assume the query works well.
Now, I want to make a report using that query, but is not a regular kind of report, I wanted to be like this :
To get the Reason value, I enter this to it control source =Count(IIf([Reason]="On Leave",0)), that also for all 4 kind of reason type.
The strange is for the other report using this model I have no problem, but somehow for this one it came with warning like this :
"
This expression is typed incorrectly, or it is too complex to be evaluated. For example, a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables."
Please help me on this one. I try to remake the report that's work but still not working for this 2 table.
Code:
SELECT [Table1].[Date], [Table1].Reason FROM [Table1] GROUP BY [Table1].[Date], [Table1].Reason HAVING ((([Table1].[Date])>=[FirstDate] And ([Table1].[Date])<=[LastDate]) AND (([Table1].Reason) Is Not Null));
Now, I want to make a report using that query, but is not a regular kind of report, I wanted to be like this :
Code:
No Date On Leave Sick Present Business Trip 1 October'09 1 4 50 5 2 November'09 2 10 48 0
The strange is for the other report using this model I have no problem, but somehow for this one it came with warning like this :
"
This expression is typed incorrectly, or it is too complex to be evaluated. For example, a numeric expression may contain too many complicated elements. Try simplifying the expression by assigning parts of the expression to variables."
Please help me on this one. I try to remake the report that's work but still not working for this 2 table.
Comment