Hi Folks -
I have another thread going with an issue I am having and I'm trying out a few ideas I have.
I have a question with may be stupid, but possible to use a query is a LIKE condition?
For instance:
Code:
SELECT [Long_Code]
FROM [LT-SAP_CC_CMSO_Mapping]
WHERE [Long_Code] LIKE '*(SELECT
Switch(
Len(Nz([Host Country Cost Center - ID], [Cost Center - ID])) - Len(Replace(Nz([Host Country Cost Center - ID], [Cost Center - ID]), "_", "")) > 0, Mid(Nz([Host Country Cost Center - ID], [Cost Center - ID]),InStrRev(Nz([Host Country Cost Center - ID], [Cost Center - ID]),"_")+1),
Len(Nz([Host Country Cost Center - ID], [Cost Center - ID])) - Len(Replace(Nz([Host Country Cost Center - ID], [Cost Center - ID]), "-", "")) > 0, Mid(Nz([Host Country Cost Center - ID], [Cost Center - ID]),InStrRev(Nz([Host Country Cost Center - ID], [Cost Center - ID]),"-")+1)
) FROM [LT-Global_Monthly_Headcount]
)*'
Thanks!