To answer your question directly:
Here is the code that handles my save button:
====================================================
procedure TForm1.SaveClick(Sender: TObject);
begin
// Save Button
// Fill in Insert Alternative
SQLQuery1.Params.ParamByName('aid').AsInteger:=10;
SQLQuery1.Params.ParamByName('aname').AsString:='Hogwarts';
SQLQuery1.Params.ParamByName('asize').AsString:='Medium';
//
SQLQuery1.ApplyUpdates;
SQLTransaction1.CommitRetaining;
SQLQuery1.Active:=true;
end;
==========================================================
The SQLQuery1.SQL is:
SELECT * FROM ANIMALS ORDER BY A_NAME
==========================================================
The SQLQuery1.InsertSQL is:
INSERT INTO ANIMALS
(A_ID, A_NAME, A_SIZE)
VALUES
(:aid, :aname, :asize);
==========================================================
The Failure occurs when the
SQLQuery1.Params.ParamByName('aid').AsInteger:=10;
is executed.