SELECT Sum(IIf([Created By Source]="CSCC",1,0)) AS [CSCC-Quotes], Sum(IIf([QuotesFile]![Created By Source]='CSCC' And [QuotesFile]![Quote Status]='QC',1,0)) AS [CSCC-Orders], Sum(IIf([Created By Source]="IQT",1,0)) AS [IQT-Quotes], Sum(IIf([QuotesFile]![Created By Source]='IQT' And [QuotesFile]![Quote Status]='QC',1,0)) AS [IQT-Orders], Sum(IIf([Created By Source]="SCC",1,0)) AS [SCC-Quotes], Sum(IIf([QuotesFile]![Created By Source]='SCC' And [QuotesFile]![Quote Status]='QC',1,0)) AS [SCC-Orders]
FROM QuotesFile
WHERE (((QuotesFile.[Creation Date]) Between #1/11/2007# And #11/30/2007#));
|