Now, what does the BinaryIP UDF have to do with the Subnet UDF as you don't include the Subnet UDF in your code?

Also, why do you jump back and forth between different UDFs, anyway? One time you use IsInSubnet(), another time you use BinaryIP(0/Subnet(). They both accomplish the same.
_________________________
There are two types of vessels, submarines and targets.