G
Guest
Hi:
I have a form based on a query with 5 related tables, each related table is
shown as a subform. There is a left join between the main table and the
related tables and the query has been set to Inconsistent Updates. I have
activated (against my better judgement) cascade updates within the
relationships because on the odd occasion the primary key in the main table
needs to be changed.
Here in lies the problem:
If I change the PK in the underlying query it updates in all of the related
tables but if I change it on the form it doesn't and my subforms go to a new
record. Is this because the Master/Child field is the PK and so when the PK
changes it is trying to find the matching record before the PK is updated?
If so, is there a workaround other than attaching an update query to a
"change" button on the main form?
Any suggestions would be great.
Thanks
I have a form based on a query with 5 related tables, each related table is
shown as a subform. There is a left join between the main table and the
related tables and the query has been set to Inconsistent Updates. I have
activated (against my better judgement) cascade updates within the
relationships because on the odd occasion the primary key in the main table
needs to be changed.
Here in lies the problem:
If I change the PK in the underlying query it updates in all of the related
tables but if I change it on the form it doesn't and my subforms go to a new
record. Is this because the Master/Child field is the PK and so when the PK
changes it is trying to find the matching record before the PK is updated?
If so, is there a workaround other than attaching an update query to a
"change" button on the main form?
Any suggestions would be great.
Thanks