I'm pretty sure this is not possible but it would be very cool if a parameter to a command could be a conditiion something like: myCommand parm1,if <condition> then <parm2a> else <parm2b>,parm3 I've tried every which way to do that but always get compile errors. Not possible, right? Pete lcSQL Software <http://www.lcsql.com>