Re: Join problem i Access
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Sun, 13 Aug 2006 19:59:44 -0500
Hello!I don't see where you have defined the Alias AL that you use in the Select
Im running the following query on an Access database:
ADOQuery.Close;
ADOQuery.SQL.Clear;
ADOQuery.SQL.Add('Select AE.UnitID, AE.ChannelID, AE.AlarmCreationDateTime,
AT.AlarmTypeName, AL.AlarmDescription, AE.AlarmText');
ADOQuery.SQL.Add('From ((AlarmEvents AE');
ADOQuery.SQL.Add('Left Outer Join AlarmTypes On AlarmTypes.AlarmType =
AE.AlarmType)');
ADOQuery.SQL.Add('Left Outer Join Alarms On Alarms.AlarmID = AE.AlarmID)');
ADOQuery.SQL.Add('Order By AlarmEventDateTime Desc');
ADOQuery.Open
And it gives me an exception with "undefined error".
When I run the same query from within Access it executes without problem...
Any ideas?
clause. If you are going to alias tables it is best to alias all the tables.
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- Follow-Ups:
- Re: Join problem i Access
- From: Mikael Lenfors
- Re: Join problem i Access
- References:
- Join problem i Access
- From: Mikael Lenfors
- Join problem i Access
- Prev by Date: Join problem i Access
- Next by Date: Re: Like TClientDataSet.Delta,ADO can only save modified data into stream or file?
- Previous by thread: Join problem i Access
- Next by thread: Re: Join problem i Access
- Index(es):
Relevant Pages
|