Hi,
I am currently switching from the BDE to ADO. I have an query with a left join operation. It worked well with A TQuery and the BDE engine. Not with a TADOQuery!
I stripped down the query to the bar minimum:
This results in an EDatabaseError:
"QResDB: Field 'resdb.ID' not found"
How is this possible? All fields of resdb and agents are added to the TADOQuery (design time) by double clicking on it and selecting 'Add All Fields' from the popup.
Thanks,
Raoul
I am currently switching from the BDE to ADO. I have an query with a left join operation. It worked well with A TQuery and the BDE engine. Not with a TADOQuery!
I stripped down the query to the bar minimum:
Code:
DataModule1.QResDB.Close;
DataModule1.QResDB.SQL.Clear;
s1 := 'select resdb.ID FROM resdb LEFT JOIN agents ON resdb.MyAgent=agents.ID';
DataModule1.QResDB.SQL.Add(s1);
DataModule1.QResDB.Open;
DataModule1.QResDB.ExecSQL;
This results in an EDatabaseError:
"QResDB: Field 'resdb.ID' not found"
How is this possible? All fields of resdb and agents are added to the TADOQuery (design time) by double clicking on it and selecting 'Add All Fields' from the popup.
Thanks,
Raoul