VDias -
Take a look at this FAQ How to use UDF's
_________________________
Today is the tomorrow you worried about yesterday.