Hi folks,
I have a calculated field on an MS access 2010 form and I am trying to calculate the YTD total. I have generated the following SQL for this field
= SELECT Sum(Donations.Amount) AS SumOfDonations
FROM Donations
GROUP BY DatePart("yyyy",[DatePaid])
HAVING (((DatePart("yyyy",[DatePaid]))=DatePart("yyyy",Date())));
I keep getting a syntax error about the subquery parenthesis and I cannot figure it out.
Any help?