Hi All,
Please could you assist?
I have 2 tables linked by option 2 joint properties, then linked to a 3rd table by option 1 (Only include where equal).
The query works fine but shows all records not matching.
The 3rd table is where i need to limit the result, if there is no record in 3rt tbl, it should not display in query.
Please could you assist?
I have 2 tables linked by option 2 joint properties, then linked to a 3rd table by option 1 (Only include where equal).
The query works fine but shows all records not matching.
The 3rd table is where i need to limit the result, if there is no record in 3rt tbl, it should not display in query.
Code:
SELECT [SB/AD Master].Category, [SB/AD Master].[Aircraft Type], [SB/AD Master].Series, [SB/AD Master].Index, [SB/AD Master].[SB/AD No], [SB/AD Master].Applicable, [SB/AD Master].Description, [SB/AD Master].[Code / Status], [SB/AD Master].[Revision Status], [SB/AD Master].[Repetition Hours], [SB-AD History].Frequency
FROM [Aircraft Type] INNER JOIN ([SB/AD Master] LEFT JOIN [SB-AD History] ON ([SB/AD Master].Index = [SB-AD History].Index) AND ([SB/AD Master].Series = [SB-AD History].Series) AND ([SB/AD Master].[Aircraft Type] = [SB-AD History].Type) AND ([SB/AD Master].[SB/AD No] = [SB-AD History].[SB/AD No])) ON ([Aircraft Type].Series = [SB/AD Master].Series) AND ([Aircraft Type].[Aircraft Type] = [SB/AD Master].[Aircraft Type])
WHERE ((([SB/AD Master].Applicable)=True) AND (([SB-AD History].Frequency) Is Null) AND (([SB-AD History].Type) Is Null) AND (([SB-AD History].Series) Is Null) AND (([SB-AD History].[SB/AD No]) Is Null) AND (([SB-AD History].Index) Is Null) AND (([SB-AD History].[Aircraft Registration]) Is Null) AND (([SB-AD History].[Revision Status]) Is Null))
ORDER BY [SB/AD Master].Category, [SB/AD Master].[Aircraft Type], [SB/AD Master].Series, [SB/AD Master].[SB/AD No];