Microsoft
Software
Hardware
Network
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,[SumOfQ
tyCast]) AS [Cast], IIf(IsNull([Scrap]),0,[Scr
ap]) AS [Total Scrap], tblPartsMasters.Pattern_Ty
pe, tblPartsMasters.Flask_Size
, tblPartsMasters.CPC, tblPartsMasters.Weight_Cst
g, tblPartsMasters.Metal, tblOpenOrders.Each_Price
FROM (((tblShipments LEFT JOIN qryTotalCastAllParts ON tblShipments.OpenOrderRecI
D = qryTotalCastAllParts.OpenO
rdRecID) LEFT JOIN qryTotalScrapAllParts ON tblShipments.OpenOrderRecI
D = qryTotalScrapAllParts.Open
OrdRecID) LEFT JOIN tblPartsMasters ON tblShipments.PartN = tblPartsMasters.Part_No) LEFT JOIN tblOpenOrders ON tblShipments.OpenOrderRecI
D = 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,[Scr
ap]) AS [Scrap]
Random Solutions
how can I override the DateTime class to add a custom method??
MS Access - First and Last Name field into Full Name
I have created a global distribution group - it opos up twice in the GAL - one is the group that shows the contacts - but it shows another exact name of the group (there is only one ion AD) with NO us
Allow users to change password using IIS
Divide Records By Date
NSLOOKUP
"Declare Function" err - "not allowed as Public members of object modules"
TMG/ISA 2006 - Kerberos Authentication Issues
Incorrect syntax near 'MyReportServerTempDB'. (rsRPCError)
VFP Detail 1 band is too large for page