Dsum cont:

M

myxmaster

I am still having problems with the following expression. When a debit
transaction is entered it subtracts double the amount entered.

=DSum("Amount","YourTable","TransactionType =
'Credit'")-Nz(DSum("Amount","YourTable","TransactionType =
'Cleared'"),0)-Nz(DSum("Amount","YourTable","TransactionType =
'Debit'"),0)

TIA
 
B

BruceM

Subtracting a negative number provides the same result as adding a positive.
Does it have anything to do with that?
If you use a separate text box for each DSum, do you get the correct
results? Can you give a sample of the results and the expected outcome?
 
Top