I have to set up some sql queries.
The command I want to enter is
INSERT INTO tblTest VALUES (1);
SQLQuery1.SQL.text:=('INSERT INTO tblTest VALUES (' (enterid.text) ')' );
I can see two problems with your code. The entire SQL statement is bracketed which is wrong (at least, it's wrong in Delphi, so I assume that it's also wrong in Lazarus. Secondly, the 'values' statement doesn't need the brackets and is liable to store the literal string, "enterid.text".
Better to write like this:
SQLQuery1.SQL.text:= 'INSERT INTO tblTest VALUES (:p1); SQLQuery1.params.asstring:= enterid.text; // alternatively SQLQuery1.ParamByName ('p1').asstring:= enterid.text; SQLQuery1.execsql;