This is related to my other post as I try to teach myself SQL in Access.
I have two tables, TableReviews & TableClient, and I'm trying to write a query that gives me the ID of most recent review for each client. I went back to basics and crawled through W3C School. I wrote the following query, which worked on equivalent tables & field types in the W3C sample database.
SELECT Max(TableReviews.ReviewDate) AS LastReview, TableClient.ClientFullName, TableReviews.ReviewID
FROM TableReviews INNER JOIN TableClient ON TableReviews.ReviewClient = TableClient.ClientID
GROUP BY ClientFullName;
When I try to view the query in datasheetview, I get the following error: "Your query does not include the specified expression 'ReviewID' as a part of an aggregate function." I think I understand what this means, but not why it should cause an error. I've dropped the query into two different syntax checkers (https://en.rakko.tools/tools/36/ and https://www.coderstool.com/sql-syntax-checker) and they both say it's valid SQL.
Is there something specific in the Access version of SQL that I don't understand?