J
J. Mullenbach
Hello All,
I can't say thanks enough for all the help provided here. I look forward to
the day when I can spend more time providing answers than questions, but the
light at the end of that tunnel is still rather dim at the present...
I created a custom AutoNumber field (Text field) for a client based on a
MMYY000 format so that new records are assigned a unique value based on the
current month & year, incrementing the count by one for each additional
record added during the same month. So now, of course, the client wants to
know why the fields are sorting like:
0100001
0100002
0101001
0200001
....
Is there any way to create a custom sort so that the first four characters
are treated as a date in MMYY format and the last three treated as a number
in 000 format, descending so that the most recently added record is displayed
first?
For ten bonus points: The client's historical records are in the above
format, however, some of them are missing the leading zero and some are not.
Is there any way to programatically check the length of this field for each
record and add a zero to the beginning of the string if the Len value is 6
instead of 7?
I can't say thanks enough for all the help provided here. I look forward to
the day when I can spend more time providing answers than questions, but the
light at the end of that tunnel is still rather dim at the present...
I created a custom AutoNumber field (Text field) for a client based on a
MMYY000 format so that new records are assigned a unique value based on the
current month & year, incrementing the count by one for each additional
record added during the same month. So now, of course, the client wants to
know why the fields are sorting like:
0100001
0100002
0101001
0200001
....
Is there any way to create a custom sort so that the first four characters
are treated as a date in MMYY format and the last three treated as a number
in 000 format, descending so that the most recently added record is displayed
first?
For ten bonus points: The client's historical records are in the above
format, however, some of them are missing the leading zero and some are not.
Is there any way to programatically check the length of this field for each
record and add a zero to the beginning of the string if the Len value is 6
instead of 7?