Hi I have an expression duilder syntax problem.
I'm trying to calculate the total amount spent on an event in a subform based on the main form record. Here is the code I have written:
It's probably simple but your help is much appreciated.Code:=Nz(DSum(Forms![Donations subform]![AmountPaid],[PaymentsReceived],"[PaymentsReceived]![DonerRegID]=" & Nz([Donation ID] and Forms![Donations subform]![DonationType] = "Fund Raising Event",0)),0