N
NielsE
I am developing a data base for humanitarian projects that each can operate
in several countries and each country can have several projects.
Users enter data through a form that is based on the main tblProjects and
three sub-forms. One of the sub-forms handle the entry of project
country(ies) using a combobox that is limited by the region chosen on the
main form (e.g. if Africa is the region selected on the main only African
countries are visible in combo). While the recordsource for the sub-form is
the tblProCountry that ensures the many-to-many relationship between projects
and countries, the Conutry combo (CountryName) takes its values from the
tblCountry. If the country is not in list it will be added. The tblCountry
has the field CountryName as primary key (no autonumber ID). The other field
in the tblCountry is Region, which is a lookup from the tblRegion where
Region is the only field and primary field (again no autonumber ID).
What I want to do is, in the case of country not in list, to enable the user
to add the relevant region to the newly enetered new contry. I can place a
new RegionCombo in the Country sub-form that take its values from the
tblRegion, but how do I, let's say, ensure that Africa goes into the region
field in the same record as Malawi in the tblCountry?
Thanks for any help in advance.
Niels
in several countries and each country can have several projects.
Users enter data through a form that is based on the main tblProjects and
three sub-forms. One of the sub-forms handle the entry of project
country(ies) using a combobox that is limited by the region chosen on the
main form (e.g. if Africa is the region selected on the main only African
countries are visible in combo). While the recordsource for the sub-form is
the tblProCountry that ensures the many-to-many relationship between projects
and countries, the Conutry combo (CountryName) takes its values from the
tblCountry. If the country is not in list it will be added. The tblCountry
has the field CountryName as primary key (no autonumber ID). The other field
in the tblCountry is Region, which is a lookup from the tblRegion where
Region is the only field and primary field (again no autonumber ID).
What I want to do is, in the case of country not in list, to enable the user
to add the relevant region to the newly enetered new contry. I can place a
new RegionCombo in the Country sub-form that take its values from the
tblRegion, but how do I, let's say, ensure that Africa goes into the region
field in the same record as Malawi in the tblCountry?
Thanks for any help in advance.
Niels