I have this SQL statement
SELECT Count(DownloadN ew.AcctNumb) AS CountOfAcctNumb
FROM DownloadNew
WHERE (((DownloadNew. Phase)="0001") AND
((DownloadNew.F upDte)<=[Forms]![Reconciliation Forms]![Combo27]) AND
((DownloadNew.R outer)="RPP") AND ((DownloadNew.D PD)<45) AND
((DownloadNew.S vcBrnd)="PD") AND ((DownloadNew.L abel) Not Like "JC" And
(DownloadNew.La bel) Not Like "LA" And (DownloadNew.La bel) Not Like
"VC")) OR (((DownloadNew. Phase)="0001") AND
((DownloadNew.F upDte)<=[Forms]![Reconciliation Forms]![Combo27]) AND
((DownloadNew.R outer) Not Like "RPP") AND ((DownloadNew.S vcBrnd)="PD")
AND ((DownloadNew.L abel) Not Like "JC" And (DownloadNew.La bel) Not Like
"LA" And (DownloadNew.La bel) Not Like "VC"));
can anyone tell me how to exclued the following items
I need to exclude the following
Anything from the DownloadNew table that has a "state" value of "MA"
AND a null in the "Usrgrp"
SELECT Count(DownloadN ew.AcctNumb) AS CountOfAcctNumb
FROM DownloadNew
WHERE (((DownloadNew. Phase)="0001") AND
((DownloadNew.F upDte)<=[Forms]![Reconciliation Forms]![Combo27]) AND
((DownloadNew.R outer)="RPP") AND ((DownloadNew.D PD)<45) AND
((DownloadNew.S vcBrnd)="PD") AND ((DownloadNew.L abel) Not Like "JC" And
(DownloadNew.La bel) Not Like "LA" And (DownloadNew.La bel) Not Like
"VC")) OR (((DownloadNew. Phase)="0001") AND
((DownloadNew.F upDte)<=[Forms]![Reconciliation Forms]![Combo27]) AND
((DownloadNew.R outer) Not Like "RPP") AND ((DownloadNew.S vcBrnd)="PD")
AND ((DownloadNew.L abel) Not Like "JC" And (DownloadNew.La bel) Not Like
"LA" And (DownloadNew.La bel) Not Like "VC"));
can anyone tell me how to exclued the following items
I need to exclude the following
Anything from the DownloadNew table that has a "state" value of "MA"
AND a null in the "Usrgrp"
Comment