S
swichman
I have a problem and if anybody could help I would really appreciate
it.
I have a field called subcondwgnumber which has entries such as PL100,
RS2A, BP35A etc.
I want to run some code that on an afterupdate of the subcondwgnumber
takes the users entry and makes it an 8 or 9 digit sort number and
then stores it in a field such as sortnumber such as the entries above
would be PL000100, RS000002A, BP000035A. Please note that not all
entries have a letter at the end so that this creates some
difficulty. I am thinking:
1. Test subcondwgnumber user entry for letter at end
2. If there is, strip it
3. Make standard 8 digit number by adding appropriate number of zeros
at end of initial group of letters
4. Add letter back on
5. Store in field sortnumber
If anybody could help I would be extremely greatful.
it.
I have a field called subcondwgnumber which has entries such as PL100,
RS2A, BP35A etc.
I want to run some code that on an afterupdate of the subcondwgnumber
takes the users entry and makes it an 8 or 9 digit sort number and
then stores it in a field such as sortnumber such as the entries above
would be PL000100, RS000002A, BP000035A. Please note that not all
entries have a letter at the end so that this creates some
difficulty. I am thinking:
1. Test subcondwgnumber user entry for letter at end
2. If there is, strip it
3. Make standard 8 digit number by adding appropriate number of zeros
at end of initial group of letters
4. Add letter back on
5. Store in field sortnumber
If anybody could help I would be extremely greatful.