Hi all,
I created a dataform using the wizard, everything works fine.
I set both grids to readonly = true, and added a button to switch this
property and save modifications to db. I didn't make any other changes
to the auto-generated code.
But I keep having an error:
"Update requires a valid update command when passed DataRow collection
with modified rows"
Button's click code is:
If bEdit.Text = "Edit" Then
grdMaster.ReadOnly = False
grdDetail.ReadOnly = False
bEdit.Text = "Save"
Else
Try
OleDbDataAdapter1.Update(DSMaster)
OleDbDataAdapter2.Update(DSMaster)
Catch ex As Exception
MsgBox("bEdit: Update failed" & vbCrLf & ex.Message)
End Try
grdMaster.ReadOnly = True
grdDetail.ReadOnly = True
bEdit.Text = "Edit"
End If
thanks for help
N! Xau
Keep in mind the power of ANTANI
http://ilovemiliofede.altervista.org