Skip to content
Advertisement

Using Aliases with two Joins on MS-Access Query

I am attempting to add Joins that will allow the query to display the corresponding tbl_ICA.[Abbreviation] for both tbl_AssyMoves.[To ICA] and tbl_AssyMoves.[From ICA] in each record.

(tables are related as shown here)

I can get a single Join to work fine, but when I add the second I get

Syntax error (missing operator) in query expression ‘t1.[ICA #]=t.[From ICA] INNER JOIN t1 As t2 ON t2.[ICA #]=t.[To ICA’

It seems like it isn’t recognizing the second JOIN as another function. I need the aliases as I’m selecting two different instances of .[Abbreviation].

Query:

Advertisement

Answer

Access syntax is different than other dbms when it comes to joins (among other things).
Requires parentheses:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement