Finally, after all these comments, i'd suggest to use simple
SELECT
statement rather than inserting data.
As is described here:
INNER JOIN Operation (Microsoft Access SQL)[
^], the proper sql query should look like:
FROM dbo.vw_TransWIPGeneric AS [t]
INNER JOIN (dbo.EntityConnections AS [c]) INNER JOIN dbo.Entities AS [g] ON c.EntityId = [t].EntityId)
ON c.GroupId = [t].EntityId
''IN [ODBC;Driver={SQL Server};Server=FRANSWINDOWS10\SQLEXPRESS;Database=D:\USERS\FRANS\DOCUMENTS\WORK\SQL DATABASE\CATC14.MDF;Trusted_Connection=yes];
BUT(!) i need to warn you: there is no relationship between
[g]
and
[c]
.
By The Way: MS Access database engine likes several parentheses (see comments).
Here is another suggestion:
INNER JOIN Operation[
^]
SELECT fields
FROM table1 INNER JOIN
(table2 INNER JOIN [( ]table3
[INNER JOIN [( ]tablex [INNER JOIN ...)]
ON table3.field3compoprtablex.fieldx)]
ON table2.field2compoprtable3.field3)
ON table1.field1compoprtable2.field2;
I'm not sure which one is good. I'm not using MS Access database yet.
Let me know if it was helpful to you.