A
AndyCotgreave
Hi,
In my database, I have a CompanyID field. It is a string, but is the
primary key on my Companies table.
Tables that are related to the Companies table (People, Events, etc.)
have a one-to-many relationship with Enforced Referential Integrity.
The user is allowed to change the CompanyID, and this should change the
CompanyID field in all related tables.
If I change CompanyID on my main form, and then click on another text
box on the form, the ID field is changed, and the change cascades
throughout the tables.
BUT, if I change CompanyID on the form, and click "Save Record", Access
collapses and shuts down, and I need to repair the database. When it is
repaired, the changes have cascaded through fine.
As far as I am aware, moving focus to another control on a form should
do a SaveRecord command, but there appears to be some subtle
difference.
Any ideas?
Access 2003, Windows XP SP2
Thanks,
Andy
In my database, I have a CompanyID field. It is a string, but is the
primary key on my Companies table.
Tables that are related to the Companies table (People, Events, etc.)
have a one-to-many relationship with Enforced Referential Integrity.
The user is allowed to change the CompanyID, and this should change the
CompanyID field in all related tables.
If I change CompanyID on my main form, and then click on another text
box on the form, the ID field is changed, and the change cascades
throughout the tables.
BUT, if I change CompanyID on the form, and click "Save Record", Access
collapses and shuts down, and I need to repair the database. When it is
repaired, the changes have cascaded through fine.
As far as I am aware, moving focus to another control on a form should
do a SaveRecord command, but there appears to be some subtle
difference.
Any ideas?
Access 2003, Windows XP SP2
Thanks,
Andy