B
Brant
I have 3 tables, Company, Audit, and Network (I have more than this but
this is all i need for my question) Company And Audit are related by a
Company_ID and Audit and Network are related by CMS_ID. I have A form
Add Customer that adds into the Company and automatically creates a
record in both Audit and Network by putting in a CMS_ID in both. What I
want to do is be able to enforce the refernital integrity between these
tables but when i do it gives an error saying you cannot add, but then
adds the data anyways. The problem I am having is if I change my Company
ID i am getting duplicate records for my CMS_ID (which i can deal with,
i just wont allow changing of the Company_ID. My problem will come in
when I delete a record. I want to specify a Company_ID to delete and be
able to delete all Audits, And Network entries that are related to that
company I want to delete. What do you guys suggest I do?
Thanks in advance
this is all i need for my question) Company And Audit are related by a
Company_ID and Audit and Network are related by CMS_ID. I have A form
Add Customer that adds into the Company and automatically creates a
record in both Audit and Network by putting in a CMS_ID in both. What I
want to do is be able to enforce the refernital integrity between these
tables but when i do it gives an error saying you cannot add, but then
adds the data anyways. The problem I am having is if I change my Company
ID i am getting duplicate records for my CMS_ID (which i can deal with,
i just wont allow changing of the Company_ID. My problem will come in
when I delete a record. I want to specify a Company_ID to delete and be
able to delete all Audits, And Network entries that are related to that
company I want to delete. What do you guys suggest I do?
Thanks in advance