T
tklambStudent
I have 4 tables, Owners, Pets, Services and Billing. Owners has a one to many
relationship with Pets and Billing. Pets has a one to many relationship with
Services. (All have the ref integ and cascade update checked)
Why can't I just create a button in the Owners form that will open up the
Pets form with it's services subform and have the OID update automatically in
the Pets form. It seems the only way that OID will update (It's a PK in the
Owners table and FK in the Pets table) is if I create a subform and place it
inside the Owners form. Same with the Billing table, it appears that is has
to be inside the Owners form for the OID to update. (PK in Owners, FK in
Billing)
My Owners form is getting pretty darn crowded with all of these
subforms..and another thing, the Pets form is not really a subform. It does
have the subform of services inside it, but the Pet form itself is just a
form. I dragged the whole form inside the Owners form. That was the only way
to get the OID and PID to update in the Pets form and Services form. If I had
3 little subforms (datasheets) the OID would update, but the Services subform
didn't seem to understand to update the PID, probably because it is linked to
the Pets table. (PK in Pets and FK in Services)
I just thought once the relationships were established the forms didn't have
to be inside each other to work. I hope someoone can explain this.
relationship with Pets and Billing. Pets has a one to many relationship with
Services. (All have the ref integ and cascade update checked)
Why can't I just create a button in the Owners form that will open up the
Pets form with it's services subform and have the OID update automatically in
the Pets form. It seems the only way that OID will update (It's a PK in the
Owners table and FK in the Pets table) is if I create a subform and place it
inside the Owners form. Same with the Billing table, it appears that is has
to be inside the Owners form for the OID to update. (PK in Owners, FK in
Billing)
My Owners form is getting pretty darn crowded with all of these
subforms..and another thing, the Pets form is not really a subform. It does
have the subform of services inside it, but the Pet form itself is just a
form. I dragged the whole form inside the Owners form. That was the only way
to get the OID and PID to update in the Pets form and Services form. If I had
3 little subforms (datasheets) the OID would update, but the Services subform
didn't seem to understand to update the PID, probably because it is linked to
the Pets table. (PK in Pets and FK in Services)
I just thought once the relationships were established the forms didn't have
to be inside each other to work. I hope someoone can explain this.