S
s300
Dear All,
I have 3 tables as described below:
<Countries>
Country_ID (key)
Country_Name
<Cities>
City_ID (key)
City_Name
Country (looked up from the <Countries> table)
<Customers>
Customer_ID (key)
Customer_Country (looked up from the <Countries> table)
Customer_City (looked up from the <Cities> table)***
***Objective: in the table, i want to have only those cities displayed in
the combobox which correspond to the Country selected for the particular
Customer.
To do this, I designed a lookup field using the query builder from the table
desgner.
The query has all three tables in it, with one output field being [Cities]
from the <Cities> table, and the other one [Country] from the same <Cities>
table. The latter is filtered by [Customers]![Customer_Country], but this
doesn't work correctly. Now if I specify a numeric value there, it does
select cities for the specified Country_Id. But it doesn't do it in the table
if the above expression is used.
(a) is it at all possible (it should be, I presume)
(b) how to achieve it?
Thank you in advance,
s300
I have 3 tables as described below:
<Countries>
Country_ID (key)
Country_Name
<Cities>
City_ID (key)
City_Name
Country (looked up from the <Countries> table)
<Customers>
Customer_ID (key)
Customer_Country (looked up from the <Countries> table)
Customer_City (looked up from the <Cities> table)***
***Objective: in the table, i want to have only those cities displayed in
the combobox which correspond to the Country selected for the particular
Customer.
To do this, I designed a lookup field using the query builder from the table
desgner.
The query has all three tables in it, with one output field being [Cities]
from the <Cities> table, and the other one [Country] from the same <Cities>
table. The latter is filtered by [Customers]![Customer_Country], but this
doesn't work correctly. Now if I specify a numeric value there, it does
select cities for the specified Country_Id. But it doesn't do it in the table
if the above expression is used.
(a) is it at all possible (it should be, I presume)
(b) how to achieve it?
Thank you in advance,
s300