I am using the following update command in the button click event:
and i am getting the following error:Code:ElseIf TypeOf Me.ActiveMdiChild Is WkPayment Then Dim ChildForm As WkPayment = DirectCast(Me.ActiveMdiChild, WkPayment) ChildForm.Validate() ChildForm.EMPDRAWBindingSource.EndEdit() ChildForm.EMPDRAWTableAdapter.Update(ChildForm.EmPaY.EMPDRAW) MsgBox(" Update successful ")
What could possibly be wrong ?Update requires a valid UpdateCommand when passed DataRow collection with modified rows.




Reply With Quote