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
Heres a good one ---- Select Records based on digits following decimal point in numerical value
VBA - Calling a function from outside a Private Sub
using cast and case...
VS2008 - Could not find assembly error ... after upgrading to VS2008
Novell Zenworks 10 vs MS System Center Essentials 2007
How can I retrieve the HTML source from a web page at a certain URL?
New motherboard will not boot
How to import data into excel sheet from remote unix box.
how to get the milliseconds from datetime in dotnetcompact framework
Disable the right mouse button for pasting into a textbox