You cant put unmatched lets inside an if. Consider using Python. If you have to use DTML you have to set variables into the REQUEST. -- Andy McKay @gmweb Consulting http://www.agmweb.ca