I am trying to join three tables together in microsoft access, allowing for null entries with Table 1
being my primary table so all the records show.
I have this code that works linking only 2 tables.
SELECT [1].IDCode, [2].GiftDate, [2].FundId__1, [2].fund_name
FROM 1 LEFT JOIN 2 ON [1].IDCode = [2].IDCode
WHERE ((([1].IDCode) Is Not Null));
But I want to add a third. I have this, but each time I try to run it, I get an error (Invalid Operation).
SELECT [1].IDCode, [2].GiftDate, [2].FundId__1, [2].fund_name, [3].Rep_Type
FROM (1 LEFT JOIN 2 ON [1].IDCode = [2].IDCode) LEFT JOIN 3 ON [1].IDCode = [3].IDCode
WHERE ((([1].IDCode) Is Not Null));
My code is now this and I'm still receiving the invalid operation.
SELECT [A].IDCode, [A].GiftDate, [A].FundId__1, [A].fund_name, [3].Rep_Type
FROM
(SELECT [1].IDCode, [2].GiftDate, [2].FundId__1, [2].fund_name
FROM 1
LEFT JOIN 2
ON [1].IDCode = [2].IDCode) A
LEFT JOIN 3
ON [A].IDCode = [3].IDCode
WHERE ((([1].IDCode) Is Not Null));