Thanks to whosrdaddy thread102-893361 I am able access duplicate tables from different folders as
per the following code.
Code:
begin
qryname1 := '''C:\h\StdAcc\6\GL'' t1, ''C:\h\StdAcc\UsrTfr'' t2';
qryname2 := 't1.PNo = t2.PNo';
qryname3 := 't1.GLNo';
with dmStdAcc.qryGL do
begin
SQL.Clear;
SQL.Add('SELECT *');
s:=format('FROM %s',[qryname1]);
SQL.Add (s);
s:=format('WHERE %s',[qryname2]);
SQL.Add (s);
s:=format('ORDER BY %s',[qryname3]);
SQL.Add (s);
Active := True;
end;
But I obviously also need to be able to control the SQLText in the TUpDateSQL component.
How can I do that? Anyone?
Thanks in advance.