G
Guest
I am trying to use a many to many relationship to organize my data and am
having trouble entering the data. My database has three tables: Landowners,
Sites, and a junction table: Site Ownership. Landowners can own many
different sites and sites can have many different landowners. The tables are
like this with the primary keys indicated with an asterix; I have a multiple
primary keys for the Sites table for organizational purposes.
"Landowners" "Sites" "Site Ownership"
LandownerID*(autonumber) Site#* LandownerID(long integer)
Name Watershed* Site#
Address Comment Watershed
Soil type
The junction table has two one to many relationships established, one for
each table that feed it.
I import the Site table data first and want to use the database to assign
landowners to the sites. I have created a form based on the Sites table with
a subform based on the Landowners table to attempt to do this. It seems that
entering data this way does not work and does not update the junction table
(Site Ownership) automatically. When I alternatively try to add data to the
junction table I am given the error that I cannot add records to it because
related records are required in the other two tables. I do have some data in
this table but cannot remember how I was able to enter it. If there is a
possible solution I would like to be able to select the landowner from a list
(or using a combo box).
Thanks in advance for any help or ideas
having trouble entering the data. My database has three tables: Landowners,
Sites, and a junction table: Site Ownership. Landowners can own many
different sites and sites can have many different landowners. The tables are
like this with the primary keys indicated with an asterix; I have a multiple
primary keys for the Sites table for organizational purposes.
"Landowners" "Sites" "Site Ownership"
LandownerID*(autonumber) Site#* LandownerID(long integer)
Name Watershed* Site#
Address Comment Watershed
Soil type
The junction table has two one to many relationships established, one for
each table that feed it.
I import the Site table data first and want to use the database to assign
landowners to the sites. I have created a form based on the Sites table with
a subform based on the Landowners table to attempt to do this. It seems that
entering data this way does not work and does not update the junction table
(Site Ownership) automatically. When I alternatively try to add data to the
junction table I am given the error that I cannot add records to it because
related records are required in the other two tables. I do have some data in
this table but cannot remember how I was able to enter it. If there is a
possible solution I would like to be able to select the landowner from a list
(or using a combo box).
Thanks in advance for any help or ideas