-1

Hi I am newbie in MS Access I am using the following expression to calculate the balance of my wallet

Balance: Nz(IIf([In]=Yes,Sum([Cost]),0))-Nz(IIf([In]=No,Sum([Cost]),0))

I want to take difference of two sums, one with [In] = Yes and other with [In] = No, this will tell me the balance of the whole transactions, I have written the fomula given above I dunno why its not working

4

1 回答 1

0

您必须重新排序您的表达式:

Balance: Sum(IIf([In]="Yes",Nz([Cost],0)))-Sum(IIf([In]="No",Nz([Cost],0)))
于 2013-04-16T17:46:27.057 回答