• this code is writen using SQL 2005 am not sure but it might need some adjustments to work on 2000.

    ..>>..

    MobashA