I save the table in a DB, and gives an error
adoquery dataset not in edit or insert mode
Code:
procedure TForm1.Button4Click(Sender: TObject); begin try ADOQuery1.Active:=True; ADOQuery1.Post; except on e:Exception do end;end;
I save the table in a DB, and gives an error
adoquery dataset not in edit or insert mode
Code:
procedure TForm1.Button4Click(Sender: TObject); begin try ADOQuery1.Active:=True; ADOQuery1.Post; except on e:Exception do end;end;
See examples in the help too:
ADOQuery1.Active:=True; ADOQuery1.Edit;//ADOQuery1.Insert; ADOQuery1.FieldByName('MyField').AsString:='My Value'; ADOQuery1.Post;
Source: https://ru.stackoverflow.com/questions/152562/
All Articles