I do not see where you have included the BinaryIP() UDF required in the Subnet() UDF. Nor do I see a return to define the end of your subroutine.

[ 19. November 2002, 01:00: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/