I have a DSUM function in a report and I think I almost have it right but I just can't get the syntax exactly right. It keeps returning 0.
All fields exist as spelt and are set to the correct data types.Code:=Nz(DSum("[Amount]","Expenses","[Expense Type] =2" & " AND [InvoiceDate] Between " & DateSerial(Year(Date()),1,1) & " And " & DateSerial(Year(Date()),12,31)),0)
Any help from anyone please? Thank you.