When executing the following code:
procedure TForm4.Timer1Timer(Sender: TObject); var a: Integer; begin a := DM.ADOQuery9.RecNo; user := LoggedOnUserNameEx(3); DM.ADOQuery9.Active := False; DM.ADOQuery9.SQL.Clear; DM.ADOQuery9.SQL.Text := 'Select * from Application where (Status=' + QuotedStr('Открыта') + ' or Status=' + QuotedStr('В процессе') + ')' + ' and (Account=' + QuotedStr(user) + ')'; DM.ADOQuery9.Active := true; DM.ADOQuery9.RecNo := a; end; end. error pops up:
ADOQuery9. dataset cannot perform this operation
I didn’t find a place in the code where I should open a dataset for editing, or am I not digging there at all?
ADOQuery9opens? - Anton Shchyrov