Not sure what I'm doing wrong here. This is returning a total sum of all "totalcost" fields and ignoring the criteria. It works without the And "[StaffEarmark]=TRUE" portion. Any help?
=DSum("[TotalCost]","[qryExpense_Actual]","[EventIDfk]=" & [EventsID] And "[StaffEarmark]=TRUE")