A UDF is a better subroutine construct with the ablility to have a return value like a function and set @error.
_________________________
Home page: http://www.kixhelp.com/hb/