M
MValentine
I have a field called "backspan" which is a numerical value. I am wanting to
create a field called "cumulative distance". I want cumulative distance to be
based on a progressive sum of the "backspan". I have created a query which is
based on a Route and prompts the operator to enter a start and stop point,
"terminal", along the route. Below is a sample of a query result. I want to
have the query to calculate the cumulative distance.
ROUTE_1 TERMINAL_1 BACKSPAN_1 CUM_DISTANCE
17B-5L-11L-8L-7R 1 220
17B-5L-11L-8L-7R 2 190
17B-5L-11L-8L-7R 3 164
17B-5L-11L-8L-7R 4 146
17B-5L-11L-8L-7R 5 156
17B-5L-11L-8L-7R 6 160
SELECT PED.ROUTE_1, PED.TERMINAL_1, PED.BACKSPAN_1
FROM PED
WHERE (((PED.ROUTE_1)=[ Enter Route ]) AND ((PED.TERMINAL_1) Between [ ENTER
START ] And [ENTER END ]))
ORDER BY PED.TERMINAL_1;
Thnaks for any assistance.
Michael
create a field called "cumulative distance". I want cumulative distance to be
based on a progressive sum of the "backspan". I have created a query which is
based on a Route and prompts the operator to enter a start and stop point,
"terminal", along the route. Below is a sample of a query result. I want to
have the query to calculate the cumulative distance.
ROUTE_1 TERMINAL_1 BACKSPAN_1 CUM_DISTANCE
17B-5L-11L-8L-7R 1 220
17B-5L-11L-8L-7R 2 190
17B-5L-11L-8L-7R 3 164
17B-5L-11L-8L-7R 4 146
17B-5L-11L-8L-7R 5 156
17B-5L-11L-8L-7R 6 160
SELECT PED.ROUTE_1, PED.TERMINAL_1, PED.BACKSPAN_1
FROM PED
WHERE (((PED.ROUTE_1)=[ Enter Route ]) AND ((PED.TERMINAL_1) Between [ ENTER
START ] And [ENTER END ]))
ORDER BY PED.TERMINAL_1;
Thnaks for any assistance.
Michael