Jun 15, 2003 #1 uksub Programmer Jun 15, 2003 51 US can you put a sql query in a formala? i.e. select rname from glsystem where company = ?subcompany