• Instead of defining it as a sub define it as a function with a return value of sqlint (I think thats how I did it)..

    I did it in VB though..

    CEWII