Thanks Mike, Andre, and Scott. Never used value before so you filled another gap in my LC knowledge. Feels like value could be a way round using do statements in some circumstances. Pete lcSQL Software <http://www.lcsql.com>