Question : How change display in query sql statement

I have a query written as follows:

SELECT tblShipments.DateShpd, tblShipments.PO, tblShipments.PartN, tblShipments.ShipQty, IIf(IsNull([SumOfQtyCast]),0,[SumOfQtyCast]) AS [Cast], IIf(IsNull([Scrap]),0,[Scrap]) AS [Total Scrap], tblPartsMasters.Pattern_Type, tblPartsMasters.Flask_Size, tblPartsMasters.CPC, tblPartsMasters.Weight_Cstg, tblPartsMasters.Metal, tblOpenOrders.Each_Price
FROM (((tblShipments LEFT JOIN qryTotalCastAllParts ON tblShipments.OpenOrderRecID = qryTotalCastAllParts.OpenOrdRecID) LEFT JOIN qryTotalScrapAllParts ON tblShipments.OpenOrderRecID = qryTotalScrapAllParts.OpenOrdRecID) LEFT JOIN tblPartsMasters ON tblShipments.PartN = tblPartsMasters.Part_No) LEFT JOIN tblOpenOrders ON tblShipments.OpenOrderRecID = tblOpenOrders.RecID
WHERE (((tblShipments.DateShpd) Between #1/1/2007# And #12/31/2009#));

But, for example, where the resulting query displays "Total Scrap" I want it to display just "Scrap".  How do I do this?

--Steve

Answer : How change display in query sql statement

Have you tried removing the word Total:

IIf(IsNull([Scrap]),0,[Scrap]) AS [Scrap]
Random Solutions  
 
programming4us programming4us