Here is the code:
SELECT dbo_ALLDSLAMS2.DSLAM, Count(dbo_ALLDSLAMS2.DSLAM) AS CountOfDSLAM, dbo_ALLDSLAMS2.FORMAT, dbo_ALLDSLAMS2.PORTID
FROM dbo_ALLDSLAMS2
GROUP BY dbo_ALLDSLAMS2.DSLAM, dbo_ALLDSLAMS2.FORMAT, dbo_ALLDSLAMS2.PORTID
HAVING (((dbo_ALLDSLAMS2.PORTID)<"0" Or (dbo_ALLDSLAMS2.PORTID) Is Null))
ORDER BY dbo_ALLDSLAMS2.DSLAM;
This does report how many ports are NOT being used, but if all the ports are being used I need it to report 0 or NONE. Is this possible in one query?
Thanks.
SELECT dbo_ALLDSLAMS2.DSLAM, Count(dbo_ALLDSLAMS2.DSLAM) AS CountOfDSLAM, dbo_ALLDSLAMS2.FORMAT, dbo_ALLDSLAMS2.PORTID
FROM dbo_ALLDSLAMS2
GROUP BY dbo_ALLDSLAMS2.DSLAM, dbo_ALLDSLAMS2.FORMAT, dbo_ALLDSLAMS2.PORTID
HAVING (((dbo_ALLDSLAMS2.PORTID)<"0" Or (dbo_ALLDSLAMS2.PORTID) Is Null))
ORDER BY dbo_ALLDSLAMS2.DSLAM;
This does report how many ports are NOT being used, but if all the ports are being used I need it to report 0 or NONE. Is this possible in one query?
Thanks.