Using MySQL. Whan I create a Foreign Keys in a database between Parent/Child tables, I get into problems. Saving a form generates an arror. When I remove the key everything works fine. Obviously I want the database to take care of RI, so what alse could be done to have this working ?
Any ideas ?
Arthur
In this case: dps_vendors is PARENT table and dps_xproven i a child table, FK_Ven2Xpro = foeign key
Error inserting:
Cannot add or update a child row: a foreign key constraint fails (dpsi.dps_vendors, CONSTRAINT FK_Ven2Xpro FOREIGN KEY (VendorID) REFERENCES dps_xproven (VendorID) ON DELETE NO ACTION ON UPDATE NO ACTION)

