try
{
oledbCmdBuilder = new OleDbCommandBuilder(oledbAdapter);
changes = ds.GetChanges();
if (changes != null)
{
oledbAdapter.Update(ds.Tables[0]);
}
ds.AcceptChanges();
MessageBox.Show("Save Changes", "Saved?", MessageBoxButtons.OK, MessageBoxIcon.Information);
this.Close();
Frm_Reports obj = new Frm_Reports();
obj.Show();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
try this code is working fine.