Thanks Les. Thats It I didn't read the udf paramaters properly.