T
Tom
I need to calculate the difference between a field value
and the previous record. I tried using the Dlookup
function to create a field that displays both values on
the same row. Unfortunatly, the statement returns the
first value in all record.
The Dlookup method may not be the best solution, so I am
open to other suggestions. The rows are weekly data, with
one field named "Wk Ending". I created a field using the
dateadd function that returns the Wk Ending value less 7
days named "Last WE". All data is within the same query.
My Dlookup statement is as follows:
Calc Field: DLookUp("[Field1]","[Query1]"," '#[Wk Ending]#
=' & '#[LAST WE]#' ")
What am i doing wrong and is there a better way?
and the previous record. I tried using the Dlookup
function to create a field that displays both values on
the same row. Unfortunatly, the statement returns the
first value in all record.
The Dlookup method may not be the best solution, so I am
open to other suggestions. The rows are weekly data, with
one field named "Wk Ending". I created a field using the
dateadd function that returns the Wk Ending value less 7
days named "Last WE". All data is within the same query.
My Dlookup statement is as follows:
Calc Field: DLookUp("[Field1]","[Query1]"," '#[Wk Ending]#
=' & '#[LAST WE]#' ")
What am i doing wrong and is there a better way?