I have a transactions table which has transactions of various types done by different investors in various folios and products.
I am interested in the transactions with have the [Mod Ttype] field set to "DR".
I would like a date-wise listing of DR transactions for each [folio_no] and [prodcode], showing [purprice],[Mod Units] and [amount], along with a running sum of [Mod Units].
For each row, the query has to, for a given [folio_no] and [prodcode], sum up all [Mod Units] upto and including the [traddate] of that row.
The table and the query (using DSum) I wrote to extract this information from the table are in the attached database.
When I run this query I get gaps. The running sum is skipped in certain fields, and re-started with some mysterious additions.
Could anyone please look into this and tell me how to rectify this.
Thanks
I am interested in the transactions with have the [Mod Ttype] field set to "DR".
I would like a date-wise listing of DR transactions for each [folio_no] and [prodcode], showing [purprice],[Mod Units] and [amount], along with a running sum of [Mod Units].
For each row, the query has to, for a given [folio_no] and [prodcode], sum up all [Mod Units] upto and including the [traddate] of that row.
The table and the query (using DSum) I wrote to extract this information from the table are in the attached database.
When I run this query I get gaps. The running sum is skipped in certain fields, and re-started with some mysterious additions.
Could anyone please look into this and tell me how to rectify this.
Thanks