N
Nick Mirro
2 tables with 1:1 relationship are joined by the same primary key, in this
case visitID. This field is created (autonumber) in tblVisits. The foreign
key table, tblPayments has visitID as its primary key.
After creating a new record in tblVisits, I open a form, which I assume
should create a new record in tblPayments (with any new data added). This
doesn't work though. I get this error:
"You cannot add a record (to tblPayments) because a related record is
required in table 'tblVisits.'
Shouldn't a new record be created automatically in tblPayments (even though
it isn't autonumber)? There is another table (tblBillingInfo) which has
this exact relationship with tblVisits and new records are created when I
add data to its form.
primary key type
tblVisits visitID autonumber
tblPayments visitID foreign key
tblBillingInfo visitID foreign key
Relationships:
http://home.comcast.net/~nickmirro/images/Temporary/Relationships.pdf
case visitID. This field is created (autonumber) in tblVisits. The foreign
key table, tblPayments has visitID as its primary key.
After creating a new record in tblVisits, I open a form, which I assume
should create a new record in tblPayments (with any new data added). This
doesn't work though. I get this error:
"You cannot add a record (to tblPayments) because a related record is
required in table 'tblVisits.'
Shouldn't a new record be created automatically in tblPayments (even though
it isn't autonumber)? There is another table (tblBillingInfo) which has
this exact relationship with tblVisits and new records are created when I
add data to its form.
primary key type
tblVisits visitID autonumber
tblPayments visitID foreign key
tblBillingInfo visitID foreign key
Relationships:
http://home.comcast.net/~nickmirro/images/Temporary/Relationships.pdf