Can't use HAVING clause in TRANSFORM statement. (Error 3092)

See Also

If you want to specify selection criteria, use a WHERE clause.