Hi all,
I have a query to the tune of:
SELECT stuff
FROM tablesWithJoins
GROUP BY EverythingInSelect
This works fine. Now I add:
HAVING table1.DateField Between [table2].[DateField] And DateAdd("d",60,[table2].[DateField])
I'm getting the "You tried to execute a query that does not included the specified expression (my HAVING clause) as part of an aggregate function" error. This query worked fine in 2003 but we recently upgraded to 2007 and now it's not working. What's changed between 2003 and 2007?