Hello again, all....
I think I might have an easy one.... Is there a way/command to change the result of a query result if a condition is true? For example, if I was querying all employee names and wanted to change the result of "Mike" to "Michael" but have all other stay exactly the way they are.
Desired Rule: list all employee names; however, if name is Mike, change to Michael.
Below is the SQL view of my access query (Simplified/Trimmed):
SELECT dbo_orderheader.ord_number AS [Order Number], dbo_orderheader.ord_refnum AS [Reference Number], dbo_orderheader.ord_origin_latestdate AS [Scheduled Pickup Date], dbo_orderhearder.ord_EmpName AS [Representative]
The rule I'm assuming would go here....
FROM (((((((((((dbo_NCR_Occurrence INNER JOIN dbo_orderheader ON dbo_NCR_Occurrence.OrderNumber = dbo_orderheader.ord_number)
GROUP BY dbo_orderheader.ord_number, dbo_orderheader.ord_refnum, dbo_orderheader.ord_origin_latestdate, MonthName(Month([dbo_orderheader].[ord_origin_latestdate])),
HAVING (((dbo_orderheader.ord_origin_latestdate) Between [start] And [end]) AND ((dbo_city.cty_name) Like "louisville" Or (dbo_city.cty_name) Like "fayetteville" Or (dbo_city.cty_name) Like "washington" Or (dbo_city.cty_name) Like "belle" Or (dbo_city.cty_name) Like "new johnsonville" Or (dbo_city.cty_name) Like "gregory" Or (dbo_city.cty_name) Like "deepwater" Or (dbo_city.cty_name) Like "parkersburg" Or (dbo_city.cty_name) Like "carlin") AND ((dbo_NCR_RootCauses.Description) Not Like "Internal*") AND ((dbo_NCR_Occurrence.BilltoName) Like "Chemours*") AND ((dbo_NCR_Occurrence.Status_ID) Not Like "26"))
ORDER BY dbo_orderheader.ord_origin_latestdate, dbo_city.cty_name, dbo_NCR_RootCauses.Description;