Hello, i have the following scenario. I want to extract part of text from a string in Access 2010.
i have the following field:
column1:
1234-Main st-1234567890-11218-US-
4321-Not main st-NYC-1234567890-11214-US-
I want the extract '1234567890' from both of the fields above, as you can see it some times falls after the 2nd '-' and sometimes after the 3rd '-', i want to write a logic that if there are 5 '-' total then look after 2nd '-' and if there are 6 '-' total then look after 3rd '-' and extract the number before the next dash. Please assist, thanks.