You need a BEGIN/END around the statements between your IF and ELSE.
John Rowan
====================================================== ====================================================== Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden