Access 97 SR1
Greetings,
I have a field that I'm trying to extract a portion of the text. I'm using this expression, but it's not returning what I need.
WC1: Trim(Mid([WC1],InStr(1,[WC1],"_"+1,IIf(InStr(InStr(1,[WC1],"_"+1,[WC1],"_"=0,0,InStr(InStr(1,[WC1],"_"+1,[WC1],"_"-InStr(1,[WC1],"_")))
Here is a sample of the original data:
1_ADFGI_IOIO_AFL_5L2P_FY03
This is what is returned from the expression:
ADFGI_
This is what I need:
ADFGI
Suggestions appreciated !!
Greetings,
I have a field that I'm trying to extract a portion of the text. I'm using this expression, but it's not returning what I need.
WC1: Trim(Mid([WC1],InStr(1,[WC1],"_"+1,IIf(InStr(InStr(1,[WC1],"_"+1,[WC1],"_"=0,0,InStr(InStr(1,[WC1],"_"+1,[WC1],"_"-InStr(1,[WC1],"_")))
Here is a sample of the original data:
1_ADFGI_IOIO_AFL_5L2P_FY03
This is what is returned from the expression:
ADFGI_
This is what I need:
ADFGI
Suggestions appreciated !!