D
Don
Is the following SQL valid in Access?
SELECT A.Building, A.AptNum, R.Name, R.AptNum, R.Status, P.Number,
P.Type
FROM Apartments AS A
INNER JOIN Residents AS R
ON R.AptNum = A.AptNum
LEFT JOIN Phones AS P
ON P.ResID = R.ResID
AND P.Type = 'Work'
WHERE A.Building = 3
AND R.Status = 'Moved';
When I try to run the query, I get the following error:
Syntax error (missing operator) in query expression 'R.AptNum= A.AptNum LEFT
JOIN Phones AS P ON P.ResID = R.ResID'.
Any insight will be greatly appreciated!
Thanks!
Don
SELECT A.Building, A.AptNum, R.Name, R.AptNum, R.Status, P.Number,
P.Type
FROM Apartments AS A
INNER JOIN Residents AS R
ON R.AptNum = A.AptNum
LEFT JOIN Phones AS P
ON P.ResID = R.ResID
AND P.Type = 'Work'
WHERE A.Building = 3
AND R.Status = 'Moved';
When I try to run the query, I get the following error:
Syntax error (missing operator) in query expression 'R.AptNum= A.AptNum LEFT
JOIN Phones AS P ON P.ResID = R.ResID'.
Any insight will be greatly appreciated!
Thanks!
Don