>>Try:
>>
>>Bankcode+padl(datetime()-ValueDate,15,'0')
>>
>>The most recent dates will be smaller numbers so they will be ordered first in an ascending index.
>>
>>HTH.
>>
>Larry / Nadya,
>
>Thank you very much for the help.
>
>Nasal congestion tends to slow up the transportation between my synapses. :)
>
>Laterness,
>Jon
Hi Joe,
Looks like I and Larry were too quick in our first suggestion. Sergey is right.
So, use the fixed date and Bintoc function, e.g.
BankCode+bintoc(date(2001,12,31)-ValueDate))
If it's not broken, fix it until it is.
My Blog