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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top