Originally Posted by
June7
I agree with orange's suggestion, store data properly and this would not be an issue. It is easier to concatenate than break apart. Fixing the data would be fairly easy if the structure of value is always the same. However, the inconsistency of the second part (ISV, PI-, TI) complicates as well as case that the part you want begins with different numbers. I suppose a custom function in a general module could handle the inconsistencies, something like.
Function GetPart(strS As String) As String
Dim aryS As Variant
aryS = Split(Replace(strS,"--","-"),"-")
GetPart = aryS(2) & "-" & aryS(3)
End Function
Now call the function from query:
Part: GetPart([INTOOLS_TAG])