I'm working on a calculated field that should sum do the following:
CYPending=Sum of all [Requests].[Request] by [Requests].[Program] and [Requests].[FiscalYear] where [Requests].[OrigGrant] is null and [Requests].[DGR] is null AND [Requests].[Status] does not equal “W”
This is what I have so far CYPending: CCur(Nz(DSum("Nz([Request])","REQUESTS","FiscalYear='" & [FiscalYear] & "' and Program=""" & [REQUESTS].[Program] & """ and [REQUESTS].[OrigGrant] IS NULL and [REQUESTS].[DGR] IS NULL and [REQUESTS].[Status] <> ('""W""')")))
However, the value that is returned is not correct. If I remove Status from the calculation it works fine.
Any help would be appreciated,
Kathy in NE