Question... this query returns a summed value of a customers transactions (TransAmount):
SELECT B.FirstName, B.LastName, C.CreditCardNumber, Sum(C.TransAmount) AS SumOfTransAmount
FROM tblCustomers AS B, tblTransactions AS C
WHERE B.SSN=C.SSN
GROUP BY B.FirstName, B.LastName, C.CreditCardNumber;
Problem is that the TransAmount can be a Debit or Credit (both stored as positive #'s in the DB)
How can I interrogate an Access defined column Debit/True = YES, Credit/False = NO
to derive a positive + negative summation of the true value?
1. 25.00 (Debit - represented as a positive number)
2. 35.00 (Debit - positive number)
3. 25.00 (Credit - negative number)
======
+ 35.00
Is there a way to have the TransType field represent postive/negative so that the RunningBalance query will calculate it as a Debit or Credit?
SELECT B.FirstName, B.LastName, C.CreditCardNumber, Sum(C.TransAmount) AS SumOfTransAmount
FROM tblCustomers AS B, tblTransactions AS C
WHERE B.SSN=C.SSN
GROUP BY B.FirstName, B.LastName, C.CreditCardNumber;
Problem is that the TransAmount can be a Debit or Credit (both stored as positive #'s in the DB)
How can I interrogate an Access defined column Debit/True = YES, Credit/False = NO
to derive a positive + negative summation of the true value?
1. 25.00 (Debit - represented as a positive number)
2. 35.00 (Debit - positive number)
3. 25.00 (Credit - negative number)
======
+ 35.00
Is there a way to have the TransType field represent postive/negative so that the RunningBalance query will calculate it as a Debit or Credit?