A
Al Newbie
Access 2003 - 2000 format mdb
I have the following
TRANSFORM Sum(tblSalesYTD.TotalSales) AS SumOfTotalSales
SELECT tblSalesYTD.Customer, tblSalesYTD.CustName, tblSalesYTD.Area,
tblSalesYTD.ADesc, tblSalesYTD.Salesperson, tblSalesYTD.Branch,
Sum(tblSalesYTD.TotalSales) AS TotSales
FROM tblSalesYTD
WHERE (((tblSalesYTD.Customer)="ACNO"))
GROUP BY tblSalesYTD.Customer, tblSalesYTD.CustName, tblSalesYTD.Area,
tblSalesYTD.ADesc, tblSalesYTD.Salesperson, tblSalesYTD.Branch
PIVOT tblSalesYTD.TrnMonth In
("1","2","3","4","5","6","7","8","9","10","11","12");
If I remove the WHERE clause then the query returns the expected results but
if I try to limit it to a particualr customer no results get returned
What am I doing wrong?
I have the following
TRANSFORM Sum(tblSalesYTD.TotalSales) AS SumOfTotalSales
SELECT tblSalesYTD.Customer, tblSalesYTD.CustName, tblSalesYTD.Area,
tblSalesYTD.ADesc, tblSalesYTD.Salesperson, tblSalesYTD.Branch,
Sum(tblSalesYTD.TotalSales) AS TotSales
FROM tblSalesYTD
WHERE (((tblSalesYTD.Customer)="ACNO"))
GROUP BY tblSalesYTD.Customer, tblSalesYTD.CustName, tblSalesYTD.Area,
tblSalesYTD.ADesc, tblSalesYTD.Salesperson, tblSalesYTD.Branch
PIVOT tblSalesYTD.TrnMonth In
("1","2","3","4","5","6","7","8","9","10","11","12");
If I remove the WHERE clause then the query returns the expected results but
if I try to limit it to a particualr customer no results get returned
What am I doing wrong?