Help! I have no more ideas.
In my application I have a form menu to start (form A), I go to a form with a TDBGrid for the list of records (form B) and from form B I go to Insert a new record or Edit a existing db record (form C).
The problem cames with INSERT (for now).
In the form A I have the SQLite3Connection and SQLTransaction icons to connect DB. (it's ok)
In form B I have a SQLQuery and a DataSource icon for DBGrid and this works well.
In form C I have a SQLQuery to edit/receive data from Edit fields in the form.
When I confirm INSERT operation I build a string with the data to set SQL.Text
lTextSQL:
insert into Table1 (field1, field2, ...) value (val1, val2, ...)and after:
with SQLQuery1 do
begin
Close;
SQL.Text:=lTextSQL;
Open;
Insert;
Post;
end
[>>> this is the last version of many that I tried<<< ]
in the Open instruction comes out the error

I do not understand why, Right now I feel stupid
Someone knows a solution?
However Merry Christmas to all
Amedeo