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

Expression subtracts double 4
Expression help continued 1
Help with expression 4
Help with DSUM 3
Expression 1
ACCESS 2007 Running Balance in query 4
Calculated control/combo box 1
running totals 5

Top