i'm using a Interbase database form delphi and get the following error when trying to delete, update records:
'Update Failed'.
the code I use is:
form1.DataSource2.DataSet.Close;
if form1.IBTransaction1.InTransaction then
form1.IBTransaction1.Commit;
form1.IBTransaction1.StartTransaction;
form1.IBUpdateSQL1.ExecSQL(ukDelete);
form1.IBTransaction1.Commit;
form1.IBQuery1.Open;
form1.DataSource2.DataSet.Open;
form1.DBGrid1.Refresh;
any help is appreciated
'Update Failed'.
the code I use is:
form1.DataSource2.DataSet.Close;
if form1.IBTransaction1.InTransaction then
form1.IBTransaction1.Commit;
form1.IBTransaction1.StartTransaction;
form1.IBUpdateSQL1.ExecSQL(ukDelete);
form1.IBTransaction1.Commit;
form1.IBQuery1.Open;
form1.DataSource2.DataSet.Open;
form1.DBGrid1.Refresh;
any help is appreciated