I have this configuration:
Table1Debit: ID(auto), Name(text), Amount(number)
Table2Credit: ID(auto), Name(text), Amount(number)
Query1: SELECT Amount FROM Table1Debit WHERE Name = "John"
Query2: SELECT Amount FROM Table1Credit WHERE Name = "John"
How can I calculate a balance substracting all the debits from the credits of that person?
Please, don't suggest a change in my configuration. Obviously this is a simplification. I use the queries as subforms in my main Form.
Table1Debit: ID(auto), Name(text), Amount(number)
Table2Credit: ID(auto), Name(text), Amount(number)
Query1: SELECT Amount FROM Table1Debit WHERE Name = "John"
Query2: SELECT Amount FROM Table1Credit WHERE Name = "John"
How can I calculate a balance substracting all the debits from the credits of that person?
Please, don't suggest a change in my configuration. Obviously this is a simplification. I use the queries as subforms in my main Form.