Trying to return Unit No. 364124 with zeroes for quantity and amount but it will not show up in query results.
Any suggestions? Thanks.
SELECT [tbl OFFICE DATA].[UNIT NO], [tbl ACTL EXPENSE DATA].ITEM_NO, Sum(Nz([QUANTITY],0)) AS [ACTL QTY], Sum(Nz([EXT_PRICE],0)) AS [ACTL AMT]
FROM [tbl ACTL EXPENSE DATA] INNER JOIN [tbl OFFICE DATA] ON [tbl ACTL EXPENSE DATA].UNIT_NO = [tbl OFFICE DATA].[UNIT NO]
GROUP BY [tbl OFFICE DATA].[UNIT NO], [tbl ACTL EXPENSE DATA].ITEM_NO
HAVING ((([tbl OFFICE DATA].[UNIT NO])="360320" Or ([tbl OFFICE DATA].[UNIT NO])="361393" Or ([tbl OFFICE DATA].[UNIT NO])="361420" Or ([tbl OFFICE DATA].[UNIT NO])="362681" Or ([tbl OFFICE DATA].[UNIT NO])="364124" Or ([tbl OFFICE DATA].[UNIT NO])="368640") AND (([tbl ACTL EXPENSE DATA].ITEM_NO)="30308"));
Any suggestions? Thanks.
SELECT [tbl OFFICE DATA].[UNIT NO], [tbl ACTL EXPENSE DATA].ITEM_NO, Sum(Nz([QUANTITY],0)) AS [ACTL QTY], Sum(Nz([EXT_PRICE],0)) AS [ACTL AMT]
FROM [tbl ACTL EXPENSE DATA] INNER JOIN [tbl OFFICE DATA] ON [tbl ACTL EXPENSE DATA].UNIT_NO = [tbl OFFICE DATA].[UNIT NO]
GROUP BY [tbl OFFICE DATA].[UNIT NO], [tbl ACTL EXPENSE DATA].ITEM_NO
HAVING ((([tbl OFFICE DATA].[UNIT NO])="360320" Or ([tbl OFFICE DATA].[UNIT NO])="361393" Or ([tbl OFFICE DATA].[UNIT NO])="361420" Or ([tbl OFFICE DATA].[UNIT NO])="362681" Or ([tbl OFFICE DATA].[UNIT NO])="364124" Or ([tbl OFFICE DATA].[UNIT NO])="368640") AND (([tbl ACTL EXPENSE DATA].ITEM_NO)="30308"));