KristynFelts
New member
- Local time
- Today, 17:03
- Joined
- Sep 26, 2025
- Messages
- 2
I have the following code that is supposed to calculate Previous (fiscal) Year to date (report date) donors. However, this count is often greater than the total number of donors reported for the previous fiscal year, which is the same year as PYTD. Why is my donor count increasing, sometime doubling more than the actual total number of donors counted in the same fiscal year?
Me!PYTDAlumDonor.Value = ECount("[Constit_id]", "[PY Gifts]", "[Constituency] In ('Alumni')AND [DTE] BETWEEN #" & DateAdd("yyyy", -1, dFYStart) & "# AND #" & DateAdd("yyyy", -1, dFYEnd) & "#")
I think I need to change this from ECount to DCount but I'm having trouble making it work.
Me!PYTDAlumDonor.Value = ECount("[Constit_id]", "[PY Gifts]", "[Constituency] In ('Alumni')AND [DTE] BETWEEN #" & DateAdd("yyyy", -1, dFYStart) & "# AND #" & DateAdd("yyyy", -1, dFYEnd) & "#")
I think I need to change this from ECount to DCount but I'm having trouble making it work.