Please review the manual and your IF..Else..Endif contructs. you have no ENDIF's anywhere.

The CalcLogicalSubnet() or other UDF would be much more useful to you especially when the subnet definitions / masking change as they always do.


Edited by Howard Bullock (2005-11-29 04:33 PM)
_________________________
Home page: http://www.kixhelp.com/hb/