boilermaker1997
New Member
- Joined
- Sep 20, 2007
- Messages
- 41
I'm trying to join several tables in an access query. One of the fields I'm joining on is formatted as a number in one table and text in another, so I'm using the Val function to make the data types match. That part of the statement work (first 4 lines shown below). I'm trying to add 2 additional joins, but I'm getting a syntax error when I try to run the query. I'm pretty inexperienced at Access so I'm not able to determine what is wrong with the syntax. Any advice is appreciated.
SQL Code
SELECT *
FROM
(Table1 INNER JOIN Table2
ON Table1.PPL_DEPT = Val(Table2.DEPT))
Table1 LEFT JOIN Table3 ON Table1.FUNCTION = Table3.Function) LEFT JOIN Table4 ON Table1.PPL_EMAIL = Table4.[e-Mail];
SQL Code
SELECT *
FROM
(Table1 INNER JOIN Table2
ON Table1.PPL_DEPT = Val(Table2.DEPT))
Table1 LEFT JOIN Table3 ON Table1.FUNCTION = Table3.Function) LEFT JOIN Table4 ON Table1.PPL_EMAIL = Table4.[e-Mail];