Help!
I have a field in a Microsoft Access table where I am trying to pull portions of the data out. Unfortunately, it is not in the same position in this field. No such luck.....
or :-(
Anway the following are some examples of what I am trying to pull:
example 1:
DATA IN FIELD DATA TO PULL
N21 -FEEDWTR GLOBAL-040-
Data to pull: N21 -040-
N21 -FEEDWTR GLOBAL-040-A
Data to pull: N21 -040-A
N21 -F014B -020-
Data to pull: N21 -020-
The first part I can pull using the mid function 1,3. This part of the field is standarized.
It is the end of this data where I am having problems since it is not standarized and can be in any position. Most contains a -nnn- I have tried using the InStr with the mid but I can't come up with the correct syntax.
I want to tell it to pull from the right of the field stopping at the second - -040- I think this would work but I am not having much luck.
If someone can send me the MS Access function, I would certainly appreciate it. I need ASAP
Thanks in Advance......
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
I have a field in a Microsoft Access table where I am trying to pull portions of the data out. Unfortunately, it is not in the same position in this field. No such luck.....
![[sad] [sad] [sad]](/data/assets/smilies/sad.gif)
Anway the following are some examples of what I am trying to pull:
example 1:
DATA IN FIELD DATA TO PULL
N21 -FEEDWTR GLOBAL-040-
Data to pull: N21 -040-
N21 -FEEDWTR GLOBAL-040-A
Data to pull: N21 -040-A
N21 -F014B -020-
Data to pull: N21 -020-
The first part I can pull using the mid function 1,3. This part of the field is standarized.
It is the end of this data where I am having problems since it is not standarized and can be in any position. Most contains a -nnn- I have tried using the InStr with the mid but I can't come up with the correct syntax.
I want to tell it to pull from the right of the field stopping at the second - -040- I think this would work but I am not having much luck.
If someone can send me the MS Access function, I would certainly appreciate it. I need ASAP
Thanks in Advance......
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)