Hi,
As we learned from kindler yesterday:
"What you're looking for is actually a very easy query..."
"SELECT FirstName, LastName, Details.ID, MAX(DatePart("yyyy",[DatePaid])) AS LastPayment
FROM Details LEFT JOIN Payments ON Details.ID = Payments.ID
GROUP BY FirstName, LastName, Details.ID, Payments.PaymentDescription
HAVING (((Details.LastName) Is Not Null) AND (LastPayment<2006) AND ((Payments.PaymentDescription)="membership"));
Please note the syntax:
SELECT [fields], MAX(criteria)
FROM [table]
...
Do you need further assistance? If so, post your current SQL statement.
HTH
mmcdonal
|