I have a table (Cellar) with a lookup column (Region) that queries another table (Regions). I would like the query to select only those rows which match on another field (Country).
In Access 2003 there was a way to do this on a form with an expression of the form
Regions.Country = [Forms]![EditCellar]![Country]
- EditCellar was the name of the form.
Id like to do away with the form (and am now in Access 2007). Is there a way to do this directly in the lookup column in the Cellar table definition?
Ive tried several variations but get get "Type mismatch in expression"
eg:
SELECT Regions.Region, Regions.Country, Cellar.Country FROM Regions, Cellar WHERE Regions.Country=Cellar.Country;