You can add another criteria line to limit it to just records where the Group_Number field from the SubGroupNumber table also exists in the PGMF table.
That extra line of code at the end would look like:
Code:
AND (SubgroupNumber.[GROUP_NUMBER] In (SELECT [GROUP_NUMBER] FROM PGMF));
So the total SQL code would look like:
Code:
SELECT SubGroupNumber.GROUP_NUMBER, SubGroupNumber.LICS_LEVEL, SubGroupNumber.LIPS_LEVEL
FROM SubGroupNumber LEFT JOIN PGMF ON (SubGroupNumber.[GROUP_NUMBER] = PGMF.[GROUP_NUMBER]) AND (SubGroupNumber.LICS_LEVEL = PGMF.LICS_LEVEL) AND (SubGroupNumber.LIPS_LEVEL = PGMF.LIPS_LEVEL)
WHERE (PGMF.GROUP_NUMBER Is Null)
AND (SubgroupNumber.[GROUP_NUMBER] In (SELECT [GROUP_NUMBER] FROM PGMF));