I am trying to run this query in ms access 2007:
but I always get a blank if there is no "Bank" entry in the "Credit_Ac" column.Code:"Bank": Sum(IIf(Debit_Ac="Bank",Amount))-Sum(IIf(Credit_Ac="Bank",Amount))
I have triedand it correctly shows the value.Code:"Bank": Sum(IIf(Debit_Ac="Bank",Amount))