burritonator
IS-IT--Management
The Access database that I am working on contains a table called "Devices" and another called "Hardware". The Hardware records contain a Foreign Key that links to the Primary Key of a Devices record. I have that relationaship set up, with Referential Integretity enforced ("Cascade Update Related Fields" and "Cascade Delete Related Fields" are not selected.)
I just discovered that Access will not allow me to either delete or modify a record in the Devices table if there are related records in the Hardware table. This is the desired behavior as it pertains to deletions. However, I need for the user to be able to modify records in the Devices table even if there are related records in the Hardware table. I do not understand why Access will not allow this, as I did not think that referential integrity rules would be violated when Device records are updated as long as the value of the Primary key doesn't change.
Is there a way that I can enforce referential integrity in such a way that record deletions in the primary table are not allowed if there are related records in other tables, while still allowing modifications to be made to records in the primary table?
Thanks,
Burritonator
I just discovered that Access will not allow me to either delete or modify a record in the Devices table if there are related records in the Hardware table. This is the desired behavior as it pertains to deletions. However, I need for the user to be able to modify records in the Devices table even if there are related records in the Hardware table. I do not understand why Access will not allow this, as I did not think that referential integrity rules would be violated when Device records are updated as long as the value of the Primary key doesn't change.
Is there a way that I can enforce referential integrity in such a way that record deletions in the primary table are not allowed if there are related records in other tables, while still allowing modifications to be made to records in the primary table?
Thanks,
Burritonator