S
Stephen Glynn
I've got two tables, Clients and Appointments. I've written a query,
joining the two on ClientID, that gives me a list of every appointment
I've had with each client over the last 12 months. I want it to show
me only the most recent appointment I've had with each client, though.
I'd have thought that 'max ([Appointments].[AppointmentDate])' would do
it, but I a get an error message telling me that I've tried "to execute
a query that does not include the specified expression "clientid" as
part of an aggregate function".
I don't understand either what that's trying to tell me or what I should
be doing.
Steve
joining the two on ClientID, that gives me a list of every appointment
I've had with each client over the last 12 months. I want it to show
me only the most recent appointment I've had with each client, though.
I'd have thought that 'max ([Appointments].[AppointmentDate])' would do
it, but I a get an error message telling me that I've tried "to execute
a query that does not include the specified expression "clientid" as
part of an aggregate function".
I don't understand either what that's trying to tell me or what I should
be doing.
Steve