Is the join expression unsupported by MS Access?

Can someone explain to me what is wrong with my request?

SELECT T2.TIPOPRODUTO , T2.PRODUTO , T1.ESPESSURA , '' AS LARGURA , '' AS COMPRIMENTO , '' AS [ACABAM REVEST] , '' AS [ESPECIF QUALIDADE] , T1.CÓDIGORASTREABILIDADE , T3.DATA , T4.NOMEFANTASIA , T7.NOME , T5.DT_INICIO_RESERVA , T1.PESO , T5.DT_FIM_RESERVA , '' AS DESTINO , T3.OBSERVAÇÃO , '' AS [CUSTO TOTAL] FROM ([TABELA DE PRODUTOS/ESTOQUE] LEFT OUTER JOIN [TABELA DE PRODUTOS] ON ([TABELA DE PRODUTOS/ESTOQUE].PRODUTO=[TABELA DE PRODUTOS].ID)) , [TABELA DE PRODUTOS/ESTOQUE ] AS T1 , [TABELA DE PRODUTOS] AS T2 , [TABELA DE MOVIMENTAÇÃO DE ESTOQUE] AS T3 , [TABELA DE FORNECEDORES] AS T4 , RESERVAS_PRODUTOS_ESTOQUE AS T5 , [TABELA DE MOVIMENTAÇÃO DE PRODUTOS/ESTOQUE] AS T6 , [TABELA DE USUÁRIOS] AS T7 , [TABELA DE PEDIDOS DE COMPRA] AS T8 WHERE (((T1.Produto)=[T2].[ID]) AND ((T1.ID)=[T5].[ID_PRODUTO_ESTOQUE]) AND ((T5.id_vendedor)=[T7].[ID]) AND ((T3.ID)=[T6].[ID]) AND ((T2.ID)=[T6].[PRODUTO]) AND ((T4.ID)=[T8].[FORNECEDOR]) AND ((T8.Comprador)=[T7].[ID])); 

My best guess is that it does not work on this line:

 ([TABELA DE PRODUTOS/ESTOQUE] LEFT OUTER JOIN [TABELA DE PRODUTOS] ON ([TABELA DE PRODUTOS/ESTOQUE].PRODUTO=[TABELA DE PRODUTOS].ID)) 
+4
source share
1 answer

You mix a join operator with "classic joins" (a list of tables separated by commas, with conditions in the where statement), which, it seems to me, are not allowed.

Modify the query to use only join statements. In Access, you need to join the connections using parentheses as follows:

 from (((t1 join t2 on ...) join t3 on ...) join t4 on ...) 
+8
source

All Articles