F
Faraz A. Qureshi
I am quite new to access and have yet designed the following query:
SELECT DISTINCTROW Accounts.[Account No], Accounts.Account,
Sum(Transactions.Amount) AS Balance
FROM Transactions INNER JOIN Accounts ON
Transactions.Debit=Accounts.[Account No] Or
Transactions.Credit=Accounts.[Account No]
GROUP BY Accounts.[Account No], Accounts.Account;
However, I want the Sum(Transactions.Amount) to be shown in positive if
Transactions.Debit=Accounts.[Account No] otherwise a Zero
or in negative if Transactions.Credit=Accounts.[Account No] otherwise a Zero
in a separate column
How to achieve the same?
Thanx in advance.
SELECT DISTINCTROW Accounts.[Account No], Accounts.Account,
Sum(Transactions.Amount) AS Balance
FROM Transactions INNER JOIN Accounts ON
Transactions.Debit=Accounts.[Account No] Or
Transactions.Credit=Accounts.[Account No]
GROUP BY Accounts.[Account No], Accounts.Account;
However, I want the Sum(Transactions.Amount) to be shown in positive if
Transactions.Debit=Accounts.[Account No] otherwise a Zero
or in negative if Transactions.Credit=Accounts.[Account No] otherwise a Zero
in a separate column
How to achieve the same?
Thanx in advance.