$ 0 0 Hello,Field1 and Field2 are two different fields? isn't?BTW, UDF is only checking for one input value and depending upon that output two values. Can you please be more precise? ThanksAmit Srivastava