OK, there is a much easier way to do this, I'm sure, but I'm rather new to this and can't figure out how to perform the following without all sorts of obfuscated loops and temporary variables.
Given the tables:
TRAVELLER
--------
Traveller_ID as Autonumber
Traveller_Name as text
TRIPS
-----
Trip_ID as Autonumber
Traveller_ID as long
Place_ID as long
PLACES
------
Place_ID as Autonumber
Place_Name as text
And the obvious relationships:
[TRIPS]![Traveller_ID] <---> [TRAVELLER]![Traveller_ID]
[TRIPS]![Place_ID] <---> [PLACES]![Place_ID]
So now, I want to create 2 combobox fields on a form. When you select a traveller's name from the first combobox, the second combobox is populated with a list of all the Place Names he's been to.
What sort of SQL statement would return this result?
Given the tables:
TRAVELLER
--------
Traveller_ID as Autonumber
Traveller_Name as text
TRIPS
-----
Trip_ID as Autonumber
Traveller_ID as long
Place_ID as long
PLACES
------
Place_ID as Autonumber
Place_Name as text
And the obvious relationships:
[TRIPS]![Traveller_ID] <---> [TRAVELLER]![Traveller_ID]
[TRIPS]![Place_ID] <---> [PLACES]![Place_ID]
So now, I want to create 2 combobox fields on a form. When you select a traveller's name from the first combobox, the second combobox is populated with a list of all the Place Names he's been to.
What sort of SQL statement would return this result?