Unfortunately, I don't have any code at hand to post (it's on the dev system) but I have a question for you experts. First things first, c# and a strongly-typed dataset to an Access database. Anyway, I'm getting the error:
ForeignKeyConstraint <Name_of_constraint> requires the child key values (<values>) to exist in the parent table.
There are 3 child tables that need the PK of the parent table. The way the code is supposed to work is that it calls Delete() for the DataRow and then deletes all rows in the child tables and then finally on the parent. When finding the "deleted" rows for the first child table (DataTable.Select(null, null, DataViewRowState.Deleted)), I notice that the ItemArray says it threw an exception of type 'System.Data.DeletedRowInaccessibleException'
Anyway, I apologize for being long-winded on this as I'm not sure where to start with it...it seems as though the parent information is being deleted before it should be. Oh, and this is inherited code
ForeignKeyConstraint <Name_of_constraint> requires the child key values (<values>) to exist in the parent table.
There are 3 child tables that need the PK of the parent table. The way the code is supposed to work is that it calls Delete() for the DataRow and then deletes all rows in the child tables and then finally on the parent. When finding the "deleted" rows for the first child table (DataTable.Select(null, null, DataViewRowState.Deleted)), I notice that the ItemArray says it threw an exception of type 'System.Data.DeletedRowInaccessibleException'
Anyway, I apologize for being long-winded on this as I'm not sure where to start with it...it seems as though the parent information is being deleted before it should be. Oh, and this is inherited code