M
Martin Heal
I am trying to calculate an average price from a table of
transactions, where there is an effective price &
effective date for each transaction as well as an account
number and product.
What I want to find for each transaction the average price
paid by this account for this product in previous
transactions.
I have tried:
DAvg([tblTransactions].[Effective Price],"tblTransactions",
[tblTransactions].[Effective Date]<[MyTransactions].
[Effective Date])
Where [MyTransactions] is an alias of [tbltransactions]
but this just returns the price of that one record.
Maybe I should be trying to use a different function to
derive this value, but DAvg seemed to be the closest I
could find. I would be grateful for any suggestions.
TIA
Martin
transactions, where there is an effective price &
effective date for each transaction as well as an account
number and product.
What I want to find for each transaction the average price
paid by this account for this product in previous
transactions.
I have tried:
DAvg([tblTransactions].[Effective Price],"tblTransactions",
[tblTransactions].[Effective Date]<[MyTransactions].
[Effective Date])
Where [MyTransactions] is an alias of [tbltransactions]
but this just returns the price of that one record.
Maybe I should be trying to use a different function to
derive this value, but DAvg seemed to be the closest I
could find. I would be grateful for any suggestions.
TIA
Martin