ich benötige Informationen aus einer Datenbank bestehend aus 7 Tabellen.
Mit dem Abfrage Assistenten in Access kann ich die Tabellen per Drag und Drop in ein Fenster packen, diese dann verbinden und am Ende bekomme ich eine SQL Anweisung. In Access kommt das gewünschte Ergebnis, nur im VBA Code bekomme ich Syntax-Fehler in der From-Klausel:
Nun meine Frage:
Wie verbindet man 7 Tabellen mit richtiger INNER JOIN Syntax: Gefunden habe ich
diese Information:
------------------------------
SELECT ...
FROM ((origintable
JOIN jointable1 ON ...)
JOIN jointable2 ON ...)
JOIN jointable3 ON ...
---
basically, for every extra table you join past the first, you need a bracket before the original 'FROM' table, and a closing bracket on the matching JOIN 'on' clause.
-----------------------------
Wie würdet ihr es machen
Gruß
Feliks