Hello, I am working on a major project for which I need assistance. I have an Access 2000 DB with three fields of importance
Stop
Loc_Id
Cumulative Distance
"Stop" This number field hold a 5 digit number e.g 01103 which is a bus route and stop number. The first two digits are the Route Number, and the last three digits are the number of stops within the Route (sequentially) that is made by the bus.
"Loc_ID" This is a autonumber field based on the "Stop" field. It must be unique.
"Cumulative Distance" This is a number field that hold the distance between each stop within the Route. The last row in the "Stop" field show the total distance of the route as each Stop is a cumalative distance of the total distance of the Route.
For example:
Stop Cum_Dist
01002 0.26
01003 0.38
01004 1.33
01005 1.58
01133 28.78 Miles
1. I would like to add a field to the database name "Route" that reflect the first two digits of the "Stop" field. For example, if a field begin with 01, populate the "Route" field with 1 and if the field begin with 02 populate the "Route" field with 2
2. If a stop is added, moved, or removed. A recalculation of distance from the previous and to the next stop need to be recalculated. Stop numbers for (every route that the stop served) must be recalculated to reflect the new order of the bus stops on that route only.
Whew, can this be done?
Stop
Loc_Id
Cumulative Distance
"Stop" This number field hold a 5 digit number e.g 01103 which is a bus route and stop number. The first two digits are the Route Number, and the last three digits are the number of stops within the Route (sequentially) that is made by the bus.
"Loc_ID" This is a autonumber field based on the "Stop" field. It must be unique.
"Cumulative Distance" This is a number field that hold the distance between each stop within the Route. The last row in the "Stop" field show the total distance of the route as each Stop is a cumalative distance of the total distance of the Route.
For example:
Stop Cum_Dist
01002 0.26
01003 0.38
01004 1.33
01005 1.58
01133 28.78 Miles
1. I would like to add a field to the database name "Route" that reflect the first two digits of the "Stop" field. For example, if a field begin with 01, populate the "Route" field with 1 and if the field begin with 02 populate the "Route" field with 2
2. If a stop is added, moved, or removed. A recalculation of distance from the previous and to the next stop need to be recalculated. Stop numbers for (every route that the stop served) must be recalculated to reflect the new order of the bus stops on that route only.
Whew, can this be done?