Use of GROUP BY function in WHERE clause not allowed.

There is an error in the syntax of your query. The Query Designer has attempted to locate the source of the error. Review your query syntax and correct the error before running your query.

For more information, see Sorting and Grouping Query Results (Visual Database Tools).