Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Use TQuery, not TTable.
i.e if Query1 is TQuery, then
procedure Form1.Button1Click(Sender:
begin
if Query1.Active then Query1.Close;
Query1.Sql.Clear;
Query1.Sql.Add('select * from MyTable where Field1="'+Edit1.Text+'" and Field2="'+Edit2.Text+'"');
Query1.Open;
end;
A.