>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
Jon Rosenbaum
Devcon Drummer