Hello,
I'm having trouble with a MS Access query where I'm trying to retrieve the total invoice amounts for vendors that have addresses in multiple states. I receive an error message when trying to execute the following:
SELECT V.VendorNum, Sum(P.InvoiceAmt) as InvAmount
FROM Payments as P INNER JOIN Vendors as V
ON P.VendorNum = V.VendorNum
GROUP BY V.VendorNum
HAVING Count(Distinct V.VendState) > 1;
Any help would be appreciated.
I'm having trouble with a MS Access query where I'm trying to retrieve the total invoice amounts for vendors that have addresses in multiple states. I receive an error message when trying to execute the following:
SELECT V.VendorNum, Sum(P.InvoiceAmt) as InvAmount
FROM Payments as P INNER JOIN Vendors as V
ON P.VendorNum = V.VendorNum
GROUP BY V.VendorNum
HAVING Count(Distinct V.VendState) > 1;
Any help would be appreciated.