I have the following which works fine.
with qryMyQuery do
begin
SQL.Clear;
SQL.Add('SELECT *');
SQL.Add ('FROM ''C:\h\MyQuery'''); (Where MyQuery is a permanent Folder.)
Active := True;
end;
I need to be able to vary 'MyQuery'during Runtime and am trying to
acheive something like the following.
var
TheQuery : Word; (Or something)
begin
TheQuery := AValue; (Which I will provide and which will vary.)
with qryMyQuery do
begin
SQL.Clear;
SQL.Add('SELECT *');
SQL.Add ('FROM ''C:\h\TheQuery'''); Which isn't going to happen.
Active := True;
end;
Anyone have any ideas on this please?
Thanks in advance.
TERRY