Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Here is the code I am using for combining report

Status
Not open for further replies.

Kat21

Programmer
Jul 11, 2001
13
US
SELECT DISTINCTROW Customer.CustType, Sum([Combined Sales By Customer].UnitsMTD) AS [Sum Of UnitsMTD], Sum([Combined Sales By Customer].SalesMTD) AS [Sum Of SalesMTD], Sum([Combined Sales By Customer].CostMTD) AS [Sum Of CostMTD], Sum([Combined Sales By Customer].SalesPYTD) AS [Sum Of SalesPYTD], Sum([Combined Sales By Customer].CostPYTD) AS [Sum Of CostPYTD], Sum([Combined Sales By Customer].SalesYTD) AS [Sum Of SalesYTD], Sum([Combined Sales By Customer].CostYTD) AS [Sum Of CostYTD]
FROM Customer, [Combined Sales By Customer]
GROUP BY Customer.CustType;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top