Experts,
I have a WHERE condition that strips out characters (" ", "-", "0")
I have encountered an issue with stripping out the "0".
How could the below WHERE condition be modified to to strip out only the
LEADING and TRAILING ZERO's?
This is a continuation of a previously answered question here:
https://www.experts-exchange.com/questions/28327306/Update-Query-using-Replace.html?anchorAnswerId=39747020#a39747020
thank you
UPDATE [import-CSM2] INNER JOIN tblLetterOfCredit ON [import-CSM2].[Guarantee Code] = tblLetterOfCredit.Guarante
eCode SET tblLetterOfCredit.Guarante
eCode = [import-CSM2].[Guarantee Code]
WHERE (((Replace(Replace(Replace
(Replace([
LCNO],"-",
""),"0",""
),"/",""),
" ",""))=Replace(Replace(Rep
lace(Repla
ce([Refere
nce Number],"-",""),"0",""),"/
","")," ","")));
thank you once again!