That error is coming from this part of the UDF ...

Code:

$ConnDSN=trim($ConnDSN)
if not $ConnDSN
exit 87
endif



which means your first param isn't being passed properly - are you running the exact code as shown ?

-Shawn