Guest_imported
New member
- Jan 1, 1970
- 0
I'm a noob here, trying to parse the year from text in a field, [Editorial].
The first instance of the year in the field always follows this format every time: 19xx. "
That would read: space19xxperiodspacequote
I can get it to hack off everything up to the start of the year using the following expression:
Right(Trim([Editorial]),Len(Trim([Editorial]))-InStr(InStr(1,[Editorial]," 19"
-1,[Editorial]," "
)
Result: 1999. "Blah Blah Blah...
How do I also get it to cut off the rest of the field after the first period following the year as well?
Desired Result: 1999
I'm a newbie here and the expression above took me 3 hours and I don't fully understand what I did... Have lost many brain cells this afternnon. :|
Thanks for your help.
SD
The first instance of the year in the field always follows this format every time: 19xx. "
That would read: space19xxperiodspacequote
I can get it to hack off everything up to the start of the year using the following expression:
Right(Trim([Editorial]),Len(Trim([Editorial]))-InStr(InStr(1,[Editorial]," 19"
Result: 1999. "Blah Blah Blah...
How do I also get it to cut off the rest of the field after the first period following the year as well?
Desired Result: 1999
I'm a newbie here and the expression above took me 3 hours and I don't fully understand what I did... Have lost many brain cells this afternnon. :|
Thanks for your help.
SD