B
bluegrassstateworker
I have a field called contractnum which contains a variable-length
string from 8 -17
characters. My difficulty is that when I sort them, I would like to
group them based on on the section of digits just before the last.
The 6 entries below would be grouped as described. My problem is
differnet lengths in various entries.
The last digit in some entries may represent a change to the
original. For example,
123 and P123555 both represent original documents and the last digits
represent changes to those.
123 (=original number)
123 1 (a modification to the original 123)
123 2 (a second modification to the original 123)
These below would also be grouped together but are of a different
format but would still be sorted and grouped thusly:
P123555
P123555 1
P123555 2
Any ideas how to achieve this grouping would be appreciated.
string from 8 -17
characters. My difficulty is that when I sort them, I would like to
group them based on on the section of digits just before the last.
The 6 entries below would be grouped as described. My problem is
differnet lengths in various entries.
The last digit in some entries may represent a change to the
original. For example,
123 and P123555 both represent original documents and the last digits
represent changes to those.
123 (=original number)
123 1 (a modification to the original 123)
123 2 (a second modification to the original 123)
These below would also be grouped together but are of a different
format but would still be sorted and grouped thusly:
P123555
P123555 1
P123555 2
Any ideas how to achieve this grouping would be appreciated.