Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() a = "SELECT T1.field1, T1.field2 FROM Table1 AS T1 INNER JOIN Table2 AS T2 ON T1.ID=T2.ID WHERE T2.field3=1" Set rs = db.OpenRecordset(a) It works but a = "SELECT T1.field1, T1.field2, T3.field4 FROM Table3 AS T3 INNER JOIN (Table1 AS T1 INNER JOIN Table2 AS T2 ON S.ID_REL=R.ID_REL) ON T1.ID=T2.ID WHERE T2.field3=1" Set rs = db.OpenRecordset(a) it doesn't work (Run-time error '3122': You tried to execute a query that does not include the specified expresion 'field1' as part of an aggregate function.) -- stefantem ------------------------------------------------------------------------ stefantem's Profile: http://www.excelforum.com/member.php...o&userid=13594 View this thread: http://www.excelforum.com/showthread...hreadid=502409 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Join tables like inner join in Access | Excel Discussion (Misc queries) | |||
Require help related to Excel Query outer join problem | Excel Discussion (Misc queries) | |||
join two spreadsheets | Excel Discussion (Misc queries) | |||
join 2 spreadsheets | Excel Discussion (Misc queries) | |||
ADO Recordset Problem -- Left Join | Excel Programming |