G
Guest
I have the following query:
SELECT loanActivities.officerNumber, Sum(loanActivities.Service_Charge)
FROM loanActivities
WHERE (((loanActivities.Date_of_Loan) Between #1/1/2006# And #3/31/2006#))
GROUP BY loanActivities.officerNumber;
How do I change the WHERE clause so that it always totals the records in the
first quarter of the current year? I don't want to have to change the dates
in the WHERE clause everytime the year changes. Also, here's another twist:
In January of each year, I need it to total the records for the first quarter
of the previous year. (Only in January!)
Many thanks!
SELECT loanActivities.officerNumber, Sum(loanActivities.Service_Charge)
FROM loanActivities
WHERE (((loanActivities.Date_of_Loan) Between #1/1/2006# And #3/31/2006#))
GROUP BY loanActivities.officerNumber;
How do I change the WHERE clause so that it always totals the records in the
first quarter of the current year? I don't want to have to change the dates
in the WHERE clause everytime the year changes. Also, here's another twist:
In January of each year, I need it to total the records for the first quarter
of the previous year. (Only in January!)
Many thanks!