Can't use HAVING clause in TRANSFORM statement.

Error 3092

If you want to specify selection criteria, use a WHERE Clause (SQL)4DMR9SH.