Access supports join operations on three or more tables. However, brackets must be added and join operations must be performed on one layer. For example:
Select *
From (AA left join BB on AA. A = BB. a) left join CC on CC. A = BB.;
I saw Zhu Kai's reply and tried it. No problem. Thank you, Zhu Kai! I am sorry to mislead you. Correct the following:
Previous errors:
Note one problem here. When using a join statement to query, only the on condition after the first join can add multiple conditions, and only one condition can be followed, you can add multiple conditions, but enclose them in parentheses, for example:
Select *
From (CC left join AA on AA. A = cc. a) left join BB on BB. A = AA. A and AA. B = BB. B
Select *
From (AA left join BB on AA. A = BB. A and AA. C = BB. C and BB. C = AA. a) left join CC on CC. A = BB. a,
Select *
From (AA left join BB on AA. A = BB. A and AA. C = BB. C and BB. C = AA. a) left join CC on CC. A = BB. A and AA. C = cc. C will prompt: "expressions not supported" error.
Correct:
Note one problem here. When using a join statement to query, only the on condition after the first join can add multiple conditions, and the following can also add multiple conditions, but it should be enclosed in parentheses, such:
Select *
From (CC left join AA on AA. A = cc. a) left join BB on BB. A = AA. A and AA. B = BB. B
I encountered this problem today and shared it with you.
From: http://www.cnblogs.com/zhuor/archive/2006/07/28/462225.html