S
steenman2
I have a query that is giving me an error. "Join expression not
supported."
I originally got the format for the query from someone on the board.
What it is supposed to do is take a list of value (column) and subtract
a value from the one above it. It then returns that value in a field
called results right next to the value field in the same table.
(example below). Each Value is associated with a unique ID and are in
order (ie no gaps).
Value(s) Result(s)
-70
-70 0
-68.98 1.02
-67.89 1.09
-71 2.11
-69.29 .71
-67.77 1.52
Notice I am returning the result on the second row of the two rows I am
subrtacting. I am also returning the absolute value. (thats not a
problem).
Here is the code I am using, and below is the code that someone on here
gave me. I am sure thiers is right I just didn't implement it right.
[System Dewpoints].[Dewpoint],[System Dewpoints].Dewpoints - [System
Dewpoints].Dewpoint AS Result
FROM YourTable as [System Dewpoints] LEFT JOIN YourTable as T1
ON [System Dewpoints].ID = ([System Dewpoints].ID -1 )
T.Value, T.Value - T1.Value as Result
FROM YourTable as T LEFT JOIN YourTable as T1
ON T.ID = (T1.ID -1 )
Thanks for any help.
supported."
I originally got the format for the query from someone on the board.
What it is supposed to do is take a list of value (column) and subtract
a value from the one above it. It then returns that value in a field
called results right next to the value field in the same table.
(example below). Each Value is associated with a unique ID and are in
order (ie no gaps).
Value(s) Result(s)
-70
-70 0
-68.98 1.02
-67.89 1.09
-71 2.11
-69.29 .71
-67.77 1.52
Notice I am returning the result on the second row of the two rows I am
subrtacting. I am also returning the absolute value. (thats not a
problem).
Here is the code I am using, and below is the code that someone on here
gave me. I am sure thiers is right I just didn't implement it right.
[System Dewpoints].[Dewpoint],[System Dewpoints].Dewpoints - [System
Dewpoints].Dewpoint AS Result
FROM YourTable as [System Dewpoints] LEFT JOIN YourTable as T1
ON [System Dewpoints].ID = ([System Dewpoints].ID -1 )
T.Value, T.Value - T1.Value as Result
FROM YourTable as T LEFT JOIN YourTable as T1
ON T.ID = (T1.ID -1 )
Thanks for any help.