• Thanks Richard. This seems that some of the variable would have corrupted in mid and got NULL. Now this works.

    Thanks again to all.

    -Lk