Right Basically I have a form with many child table details in it, it all work correctly and updates fine...My issue is that if I delete all the records and try in make a new insert it fails??
Example code:
Me.ParentBindingSource.EndEdit()
Me.ParentTableAdapter.Update(Me.DataSet.Parent)
Me.ChildBindingSource.EndEdit()
Me.ChildTableAdapter.Update(Me.DataSet.Child) <- error occurs here
Me.Child1BindingSource.EndEdit()
Me.Child1TableAdapter.Update(Me.DataSet.Child1)
It is basically giving me a message saying that a contraint is being violated, as in there is no parent? BUT if I open oracle and SELECT * from Parent; The new record is there?? This only happens if it is the first record inserted via my windows form
Example code:
Me.ParentBindingSource.EndEdit()
Me.ParentTableAdapter.Update(Me.DataSet.Parent)
Me.ChildBindingSource.EndEdit()
Me.ChildTableAdapter.Update(Me.DataSet.Child) <- error occurs here
Me.Child1BindingSource.EndEdit()
Me.Child1TableAdapter.Update(Me.DataSet.Child1)
It is basically giving me a message saying that a contraint is being violated, as in there is no parent? BUT if I open oracle and SELECT * from Parent; The new record is there?? This only happens if it is the first record inserted via my windows form