I cant believe I had the typo twice. Thanks again for you help. I am new to this and want to learn. So far I us kixtart for simple but long login script but I need to learn udf stuff. Any suggestions on some detailed docs to read?