I posted the other day and received helpful feedback, however I still cant get the query to do what I need it to do.
I have a table with the following columns (Pick Up Route, Intermediate Route, Intermediate Route 2, Delivery Route)
The PU Route and Delivery Route will ALWAYS have a route listed in the column/s. The IntRte and IntRte 2 may or may not have routes listed in them depending on how the freight is routed.
P/U Rte............IntRte................IntRte2................DelRte
MN1-601.......... ............. ...................................MN8-443
MN3-335.........MN8-888........... ...........................MN7-773
MN4-443.........MN7-413..............MN9-919.............MN1-111
I need my query to create a seperate column (called Main Route) that will list each of the routes in the string of data as the main route. So I would have as few as two rows (in the first string of data above) or as many as 4 rows (in the last example above). What i learned the other day is that the table is not organized properly; however, I cant do anything about that, as that is how I receive the data. The table I receive has hundreds of rows, so any manual entering is not plausable. Also, i'm just learning access, so if you can be as specific as possible, I would greatly appreciate it! Thanks in advance.
Table would look as follows
P/U Rte............IntRte................IntRte2................DelRte.......Main Rte
MN1-601.......... ............. ..............................MN8-443........MN1-601
MN1-601.......... ............. ..............................MN8-443.......MN8-443
MN3-335..........MN8-888........... ......................MN7-773.......MN3-335
MN3-335..........MN8-888........... ......................MN7-773.......MN8-888
MN3-335..........MN8-888........... ......................MN7-773.......MN7-773
MN4-443.........MN7-413............MN9-919........MN1-111.......MN4-443
MN4-443.........MN7-413............MN9-919.........MN1-111.......MN7-413
MN4-443.........MN7-413............MN9-919.........MN1-111.......MN9-919
MN4-443.........MN7-413............MN9-919.........MN1-111........MN1-111
I have a table with the following columns (Pick Up Route, Intermediate Route, Intermediate Route 2, Delivery Route)
The PU Route and Delivery Route will ALWAYS have a route listed in the column/s. The IntRte and IntRte 2 may or may not have routes listed in them depending on how the freight is routed.
P/U Rte............IntRte................IntRte2................DelRte
MN1-601.......... ............. ...................................MN8-443
MN3-335.........MN8-888........... ...........................MN7-773
MN4-443.........MN7-413..............MN9-919.............MN1-111
I need my query to create a seperate column (called Main Route) that will list each of the routes in the string of data as the main route. So I would have as few as two rows (in the first string of data above) or as many as 4 rows (in the last example above). What i learned the other day is that the table is not organized properly; however, I cant do anything about that, as that is how I receive the data. The table I receive has hundreds of rows, so any manual entering is not plausable. Also, i'm just learning access, so if you can be as specific as possible, I would greatly appreciate it! Thanks in advance.
Table would look as follows
P/U Rte............IntRte................IntRte2................DelRte.......Main Rte
MN1-601.......... ............. ..............................MN8-443........MN1-601
MN1-601.......... ............. ..............................MN8-443.......MN8-443
MN3-335..........MN8-888........... ......................MN7-773.......MN3-335
MN3-335..........MN8-888........... ......................MN7-773.......MN8-888
MN3-335..........MN8-888........... ......................MN7-773.......MN7-773
MN4-443.........MN7-413............MN9-919........MN1-111.......MN4-443
MN4-443.........MN7-413............MN9-919.........MN1-111.......MN7-413
MN4-443.........MN7-413............MN9-919.........MN1-111.......MN9-919
MN4-443.........MN7-413............MN9-919.........MN1-111........MN1-111