H
Helen
I am using the following query to sum the payments for each contributor.
SELECT DISTINCTROW Payment.ContributorID, Contributor.NamePart1,
Contributor.NamePart2, Contributor.Status, Sum(Payment.Amount) AS [Sum Of
Amount]
FROM Contributor INNER JOIN Payment ON Contributor.ContributorID =
Payment.ContributorID
GROUP BY Payment.ContributorID, Contributor.NamePart1,
Contributor.NamePart2, Contributor.Status, Contributor.ContributorID
HAVING (((Contributor.Status)<>"Inactive"))
I would like to limit the query to include only payments with a PaymentDate
whose year is earlier than an given year (ideally data entered when the query
is run).
Can someone please tell me how to do this. I would very much appreciate any
help!
Helen
SELECT DISTINCTROW Payment.ContributorID, Contributor.NamePart1,
Contributor.NamePart2, Contributor.Status, Sum(Payment.Amount) AS [Sum Of
Amount]
FROM Contributor INNER JOIN Payment ON Contributor.ContributorID =
Payment.ContributorID
GROUP BY Payment.ContributorID, Contributor.NamePart1,
Contributor.NamePart2, Contributor.Status, Contributor.ContributorID
HAVING (((Contributor.Status)<>"Inactive"))
I would like to limit the query to include only payments with a PaymentDate
whose year is earlier than an given year (ideally data entered when the query
is run).
Can someone please tell me how to do this. I would very much appreciate any
help!
Helen