M
Mark Williams via AccessMonster.com
I'm trying to replicate an excel calculation in an Access query.
I've got a feild called "AverageGain"
Firstly it runs a 14 day average over the feild "Gain"
okay, but then -
record 15 of "AverageGain" is calculated by multipling record 14 of
"AverageGain" by 13 (and adding record 15 of "Gain")
and record 16 of "AverageGain" is calculated by multipling record 15 of
"AverageGain" by 13 (and adding record 16 of "Gain")
in excel you'd simply use a reference to the above cell.
in access the same style expression seems to create a circular reference
can this be done in the design view of a query? a function?
I'm not too sharp on code, (and that's not all) but if there's some 'n-1'
type code that works here a posting with explanation for dummies would be
great
many thanks
mw
I've got a feild called "AverageGain"
Firstly it runs a 14 day average over the feild "Gain"
okay, but then -
record 15 of "AverageGain" is calculated by multipling record 14 of
"AverageGain" by 13 (and adding record 15 of "Gain")
and record 16 of "AverageGain" is calculated by multipling record 15 of
"AverageGain" by 13 (and adding record 16 of "Gain")
in excel you'd simply use a reference to the above cell.
in access the same style expression seems to create a circular reference
can this be done in the design view of a query? a function?
I'm not too sharp on code, (and that's not all) but if there's some 'n-1'
type code that works here a posting with explanation for dummies would be
great
many thanks
mw