jamaarneen
Programmer
Hi
I have tried some options (and stopped when thinks didn't went smooth & simple...), I have also read some stuff - but I'm still not sure what is the right approch?
What did I have?
A Query (that is based on 3 tables: tblProperties, tblPartners, tblTransactions), that provides a list of transactions with data like: date, PartnerName, PropertyCode, Amount, TransactionDirection (=if it was a payment or a income).
What results do I want?
I want to get the sum (not count) of all transaction, grouped per property, and, grouped by transaction direction (well, later I would also might try to group per partner, or period...).
In other words, it should give results simular like this:
Property Total payments Total income
prop code 1 sum payments sum incomes
[blue]The question is[/blue], how and what is the best & most simple way do achieve the above result?
- create a query that should give the results (and then bound a form on that query).
[If so, should i use a special query (maybe UNION), or a simple select, but with some expression as fields? (I tried working with DSum, but with no luck)]
or
- it’s not important to build a quety for that. Just to build a form on the original transaction query, and create on the form a few controls (textboxes) and build the control source should give the desired results (here too, I tried DSum - no luck :-( ).
please point me to the right direction... Thanks
Ja
I have tried some options (and stopped when thinks didn't went smooth & simple...), I have also read some stuff - but I'm still not sure what is the right approch?
What did I have?
A Query (that is based on 3 tables: tblProperties, tblPartners, tblTransactions), that provides a list of transactions with data like: date, PartnerName, PropertyCode, Amount, TransactionDirection (=if it was a payment or a income).
What results do I want?
I want to get the sum (not count) of all transaction, grouped per property, and, grouped by transaction direction (well, later I would also might try to group per partner, or period...).
In other words, it should give results simular like this:
Property Total payments Total income
prop code 1 sum payments sum incomes
[blue]The question is[/blue], how and what is the best & most simple way do achieve the above result?
- create a query that should give the results (and then bound a form on that query).
[If so, should i use a special query (maybe UNION), or a simple select, but with some expression as fields? (I tried working with DSum, but with no luck)]
or
- it’s not important to build a quety for that. Just to build a form on the original transaction query, and create on the form a few controls (textboxes) and build the control source should give the desired results (here too, I tried DSum - no luck :-( ).
please point me to the right direction... Thanks
Ja