Hello - I am using Access 2010 and have a report that uses the following query:
SELECT t.CountOfCategory, t.Category, t.CountOfDescription, t.Description
FROM qryTopThreeCategoryBehaviors AS t
WHERE (((t.Description) In (SELECT TOP 3 Description
FROM qryTopThreeCategoryBehaviors
WHERE Category=t.Category
ORDER BY CountOfDescription DESC
)));
The report runs fine using the query alone but when I try to group the report on the Category field I get the following error message:
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.
Can someone please tell me why I am getting that and how I can group this report?
Thank you!
SELECT t.CountOfCategory, t.Category, t.CountOfDescription, t.Description
FROM qryTopThreeCategoryBehaviors AS t
WHERE (((t.Description) In (SELECT TOP 3 Description
FROM qryTopThreeCategoryBehaviors
WHERE Category=t.Category
ORDER BY CountOfDescription DESC
)));
The report runs fine using the query alone but when I try to group the report on the Category field I get the following error message:
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.
Can someone please tell me why I am getting that and how I can group this report?
Thank you!