G
Guest
I am currently creating a query of payables data based on payment term
information. I would like the Vendor ID count to be distinct. When I insert
a Count(Distinct zapv.pymt.vendorid) I get a syntax error.
SELECT ZAPV_PYMT.[Payment Terms ID], Count(ZAPV_PYMT.VendorID) AS
CountOfVendorID, Count(ZAPV_PYMT.VoucherID) AS CountOfVoucherID,
ZAPV_PYMT.[Transaction Currency], Sum(ZAPV_PYMT.[Gross Invoice Amount]) AS
[SumOfGross Invoice Amount]
FROM ZAPV_PYMT
WHERE (((ZAPV_PYMT.[GL Business Unit])="A0041"))
GROUP BY ZAPV_PYMT.[Payment Terms ID], ZAPV_PYMT.[Transaction Currency];
Thank You,
Paul
information. I would like the Vendor ID count to be distinct. When I insert
a Count(Distinct zapv.pymt.vendorid) I get a syntax error.
SELECT ZAPV_PYMT.[Payment Terms ID], Count(ZAPV_PYMT.VendorID) AS
CountOfVendorID, Count(ZAPV_PYMT.VoucherID) AS CountOfVoucherID,
ZAPV_PYMT.[Transaction Currency], Sum(ZAPV_PYMT.[Gross Invoice Amount]) AS
[SumOfGross Invoice Amount]
FROM ZAPV_PYMT
WHERE (((ZAPV_PYMT.[GL Business Unit])="A0041"))
GROUP BY ZAPV_PYMT.[Payment Terms ID], ZAPV_PYMT.[Transaction Currency];
Thank You,
Paul