Parse String Help Needed!
Hi All - in a bit of a bind on this one so I could use a bit of help here!
I have an ID field in a db that is a combination of numeric and text put together. An example of what this looks like is this:
Letter P or L "-" Number "-" Number so... this ID could range from this:
P-1-1
to...
P-1836-7354
Now - what I need to do is seperate this into sections so that I can do some searching on the different sections but I'm at a loss on how to do this!?!? I am pretty comfortable with the Mid(),Left(), and Right() functions but those require knowing the set number of spaces to move and select data from and as you can see from the example above the length of the ID can be anywhere from 5 characters to 11...? If I could break out the string by sections before and after the hyphens then I would be all set but.... again I dont know how...
Any/All help on this is really appreciated!
Thanks,
Kev
Hi All - in a bit of a bind on this one so I could use a bit of help here!
I have an ID field in a db that is a combination of numeric and text put together. An example of what this looks like is this:
Letter P or L "-" Number "-" Number so... this ID could range from this:
P-1-1
to...
P-1836-7354
Now - what I need to do is seperate this into sections so that I can do some searching on the different sections but I'm at a loss on how to do this!?!? I am pretty comfortable with the Mid(),Left(), and Right() functions but those require knowing the set number of spaces to move and select data from and as you can see from the example above the length of the ID can be anywhere from 5 characters to 11...? If I could break out the string by sections before and after the hyphens then I would be all set but.... again I dont know how...
Any/All help on this is really appreciated!
Thanks,
Kev