Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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.
0 · ·