Kysteratwork
Technical User
Hi all,
I have problem:
4 tables:
tblCompanies (with BusinessCity and BusinessCountry - both IDs linked to tblCities and tblCountries)
tblCities (with Country (an ID, linked to tblCountries))
tblCountries (with RegionID linked to tblRegions)
tblRegions
I would like to have in a form the follwoing fields:
tblCompanies.CompanyName
tblCities.BusinessCity
tblCompanies.BusinessCountry
tblRegions.Region
But as soon as I add the tblRegions in the Design View, I cannot add a new company anymore... now, why is that?? Did I break the tables down to too many components (city, country, region)? But, then I thought this is what normalisation is all about...
The SQL looks as follows:
I would be grateful for any indications you may have to help me out...
Kysteratwork
I have problem:
4 tables:
tblCompanies (with BusinessCity and BusinessCountry - both IDs linked to tblCities and tblCountries)
tblCities (with Country (an ID, linked to tblCountries))
tblCountries (with RegionID linked to tblRegions)
tblRegions
I would like to have in a form the follwoing fields:
tblCompanies.CompanyName
tblCities.BusinessCity
tblCompanies.BusinessCountry
tblRegions.Region
But as soon as I add the tblRegions in the Design View, I cannot add a new company anymore... now, why is that?? Did I break the tables down to too many components (city, country, region)? But, then I thought this is what normalisation is all about...
The SQL looks as follows:
Code:
SELECT tblCompanies.CompanyID, tblCompanies.CompanyName, tblCities.BusinessCity, tblRegions.Region
FROM tblRegions INNER JOIN (tblCountries INNER JOIN (tblCities RIGHT JOIN tblCompanies ON tblCities.CityID = tblCompanies.BusinessCity) ON tblCountries.ID = tblCompanies.BusinessCountry) ON (tblRegions.RegionID = tblCountries.RegionID) AND (tblRegions.RegionID = tblCountries.RegionID);
I would be grateful for any indications you may have to help me out...
Kysteratwork