R
Rich
I have a project where my "one" table has thousands of unique cities. In this
table, I use a city code in the one-to-many relationship with the "many"
table. Absolutely straight forward here...basic textbook stuff so far.
What's different is the "many" table uses this city table several times
(several as in five different fields refer to it). For instance, the "many"
table has fields Origin, Destination, From, To, Residence, which are all
cities and use the city codes to refer to the "one" table. How do I build
queries in this situation and be able to distinguish between the city types?
I tried a few things but every time the query would not work, I received no
results.
I should mention that I defined the one-to-many relationship as follows: In
the relationships window, I went to the "Show Tables" menu and selected my
Cities table five times, so they displayed as Cities, Cities_1, Cities_2,
Cities_3, Cities_4. Then for each table I connecteds the city code with the
appropriate field in the "many" table. Was this proper or not?
table, I use a city code in the one-to-many relationship with the "many"
table. Absolutely straight forward here...basic textbook stuff so far.
What's different is the "many" table uses this city table several times
(several as in five different fields refer to it). For instance, the "many"
table has fields Origin, Destination, From, To, Residence, which are all
cities and use the city codes to refer to the "one" table. How do I build
queries in this situation and be able to distinguish between the city types?
I tried a few things but every time the query would not work, I received no
results.
I should mention that I defined the one-to-many relationship as follows: In
the relationships window, I went to the "Show Tables" menu and selected my
Cities table five times, so they displayed as Cities, Cities_1, Cities_2,
Cities_3, Cities_4. Then for each table I connecteds the city code with the
appropriate field in the "many" table. Was this proper or not?