D
Dea_gek_van_budschop
Lets start with the query:
1. SELECT *
2. FROM ( ( ( Plaatsingen
3. RIGHT JOIN ( Afdelingen
4. LEFT JOIN [Stagesoorten per instelling]
5. ON [Stagesoorten per instelling].[Afdeling ID]
= Afdelingen.[Afdeling ID]
6. )
7. ON ( Plaatsingen.[Stagesoort ID] = [Stagesoorten per
instelling].[Stagesoort ID] ) AND
8. ( Plaatsingen.[Afdeling ID] = [Stagesoorten per
instelling].[Afdeling ID] ) AND
9. ( Plaatsingen.[Periode ID] = [Stagesoorten per
instelling].[Periode ID] ) )
10. LEFT JOIN Instellingen ON Instellingen.[Instelling ID] =
Afdelingen.[Instelling ID] )
11. LEFT JOIN Contactpersonen ON ( Contactpersonen.[Afdeling ID] =
Afdelingen.[Afdeling ID] ) AND
12. ( Contactpersonen.[Stagesoort ID] =
[Stagesoorten per instelling].[Stagesoort ID] ) )
13. ORDER BY Afdelingen.[Afdeling ID];
The problem is the second criteria in the join on table "contactpersonen"
(line 12). When I remove that line (and delete AND, fix the numer of
brackets, etc.), everything works great. But when I put line 12 back in the
query, it gives me the error:
Join-expression not supported
In the join on table "plaatsingen" (line 7 - 9), the join can work with
multiple criteria, even though the structure of the joins is the same.
I think, it's a incorrect-number-of-brackets-problem, but since I've tried
all kind of bracket-combinations it still doesn't work. Somebody ideas?!?!?
Thanks!
1. SELECT *
2. FROM ( ( ( Plaatsingen
3. RIGHT JOIN ( Afdelingen
4. LEFT JOIN [Stagesoorten per instelling]
5. ON [Stagesoorten per instelling].[Afdeling ID]
= Afdelingen.[Afdeling ID]
6. )
7. ON ( Plaatsingen.[Stagesoort ID] = [Stagesoorten per
instelling].[Stagesoort ID] ) AND
8. ( Plaatsingen.[Afdeling ID] = [Stagesoorten per
instelling].[Afdeling ID] ) AND
9. ( Plaatsingen.[Periode ID] = [Stagesoorten per
instelling].[Periode ID] ) )
10. LEFT JOIN Instellingen ON Instellingen.[Instelling ID] =
Afdelingen.[Instelling ID] )
11. LEFT JOIN Contactpersonen ON ( Contactpersonen.[Afdeling ID] =
Afdelingen.[Afdeling ID] ) AND
12. ( Contactpersonen.[Stagesoort ID] =
[Stagesoorten per instelling].[Stagesoort ID] ) )
13. ORDER BY Afdelingen.[Afdeling ID];
The problem is the second criteria in the join on table "contactpersonen"
(line 12). When I remove that line (and delete AND, fix the numer of
brackets, etc.), everything works great. But when I put line 12 back in the
query, it gives me the error:
Join-expression not supported
In the join on table "plaatsingen" (line 7 - 9), the join can work with
multiple criteria, even though the structure of the joins is the same.
I think, it's a incorrect-number-of-brackets-problem, but since I've tried
all kind of bracket-combinations it still doesn't work. Somebody ideas?!?!?
Thanks!