Topic: How to Update DB from EditBox ?
Hello
Can any one show me where is the wrong in this code ? I need update the database from editbox data directly.
procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
begin
SQLExecute('UPDATE Table_Name SET Field_Name = '+Form1.Edit1.Text+' where id = '+IntToStr(Form1.TableGrid1.dbItemID));
Form1.TableGrid1.dbUpdate;
end;
One can learn and graduate or stay behind.