In a Delphi programme I have declared Texto as string.
I make Texto := Select..... etc
Adoquery1.SQL.Text := Texto;
With this coding everything works fine, but to change easily the text
I have placed an Edit in a form and then I have coded:
Texto := Edit1.Text; (Obviously Texto has now the same text it had previously since I am using the same Texto), but when I try to run
the AdoQuery1 the following error appears and the query is not implemented :
SQL istruction not valid; 'DELETE','INSERT', 'PROCEDURE','SELECT',
or 'UPDATE' was expected.Process stopped.Use step or run to continue.
Could anyone hint where the problem lies and show the correct way to
make the query work?.
Thanks in advance your any help received.