Please see the attched, but here is the explanation:
Hello,I have three tables tblA, tblAB, and tblB.
tblAB has three fields AB_ID (PK), A_Attr, and B_Attr.
tblA has two fields A_ID (PK) which contain the same value as A_Attr, and field A_Date.
tblB has two fields B_ID (PK) which contain the same value as B_Attr, and B_Date.
tblA has one to many relation to tblAB through A_ID to A_Attr, tblB has one to many relation to tblAB through B_ID to B_Attr.
If A_Attr in tblAB is not NULL the value will be one of A_ID, the same if B_ Attr in tblAB is not NULL the value will be one of B_ID.
A_Attr and B_Attr in tblAB could be nulls, A_ID or B_ID might contain value not yet in tblAB.
I want to list all AB_ID and the corresponding date from tblA and tblB if they exist.
With one table I can do OUTER LEFT JOIN to either table (see the query in the attached) which will list all AB_ID and either A_Date or B_Date but how do I list all AB_ID, plus A_Date if existed and also B_Date if it existed.
If for that AB_ID neither A_Attr nor B_Attr exist I still want to see the AB_ID with NULL in the A_Date or B_date whatever the case might be.
I tried with LEFT JOIN followed by another LEFT JOIN but Access give a message saying my LEFT JOIN is not valid.
I thought the solution should be simple but at the moment I could not get my mind to it.
Any solution is appreciated, thank you.