A
allie357
I need a query to sum to debits and credits based on a unique PO
Number. ( I also need to make other exclusions as you can see.)
Here is the query I have so far:
SELECT tblCommInfo.Commodity, tblCommInfo.[Commodity Type],
Sum(tblCommInfo.Amount) AS SumOfAmount, tblCommInfo.[PO Number]
FROM tblCommInfo
WHERE (((tblCommInfo.Amount)<5000) AND ((tblCommInfo.SubCode) Not Like
'64**' And (tblCommInfo.SubCode)<>"6506" And
(tblCommInfo.SubCode)<>"6513" And (tblCommInfo.SubCode)<>"6514" And
(tblCommInfo.SubCode)<>"6021") AND ((tblCommInfo.Purpose)<>"65811"))
GROUP BY tblCommInfo.Commodity, tblCommInfo.[Commodity Type],
tblCommInfo.[PO Number]
HAVING (((tblCommInfo.Commodity)="Computers"))
WITH OWNERACCESS OPTION;
Please help.
Number. ( I also need to make other exclusions as you can see.)
Here is the query I have so far:
SELECT tblCommInfo.Commodity, tblCommInfo.[Commodity Type],
Sum(tblCommInfo.Amount) AS SumOfAmount, tblCommInfo.[PO Number]
FROM tblCommInfo
WHERE (((tblCommInfo.Amount)<5000) AND ((tblCommInfo.SubCode) Not Like
'64**' And (tblCommInfo.SubCode)<>"6506" And
(tblCommInfo.SubCode)<>"6513" And (tblCommInfo.SubCode)<>"6514" And
(tblCommInfo.SubCode)<>"6021") AND ((tblCommInfo.Purpose)<>"65811"))
GROUP BY tblCommInfo.Commodity, tblCommInfo.[Commodity Type],
tblCommInfo.[PO Number]
HAVING (((tblCommInfo.Commodity)="Computers"))
WITH OWNERACCESS OPTION;
Please help.