R
Roy Carlson
I have a database with 2 tables. One is a table with a persons bio data
(name, children, primary address, etc), and the other table is used to
collect additional addresses and phone numbers for that person. I created a
one-to-many relationship between the two tables (bio table is one and alt
addresses table is many). I am using the AutoNumber field on the first table
and linking it to a field called "Link ID" on the second table (this is not
an auto number field).
In the table view of the first table, I am able to click the + for a row of
any record and see the fields for the second table.
I have two forms, one that asks for the bio data, and one that asks for the
alt address/phone data. I have a button on the bio form that opens the
"subform" for that record and asks for alt address/phone. However, something
isn't working. When I add the data, it doesn't link it to any record. The
LinkID field in the table is always 0, instead of the autonumber from the
first table. If I change the LinkID to the correct AutoNumber (so that it
corresponds to a record in the first table), it displays properly.
However, I want access to automatically put in the correct number - I
thought that is what a relationship is for. What am I doing wrong??
(name, children, primary address, etc), and the other table is used to
collect additional addresses and phone numbers for that person. I created a
one-to-many relationship between the two tables (bio table is one and alt
addresses table is many). I am using the AutoNumber field on the first table
and linking it to a field called "Link ID" on the second table (this is not
an auto number field).
In the table view of the first table, I am able to click the + for a row of
any record and see the fields for the second table.
I have two forms, one that asks for the bio data, and one that asks for the
alt address/phone data. I have a button on the bio form that opens the
"subform" for that record and asks for alt address/phone. However, something
isn't working. When I add the data, it doesn't link it to any record. The
LinkID field in the table is always 0, instead of the autonumber from the
first table. If I change the LinkID to the correct AutoNumber (so that it
corresponds to a record in the first table), it displays properly.
However, I want access to automatically put in the correct number - I
thought that is what a relationship is for. What am I doing wrong??