Just ran across a little oddity. The statement "if tVar is not zero" evaluates to false if tVar is empty. Apparently empty and zero are treated the same for comparison purposes? Pete lcSQL Software <http://www.lcsql.com>