>If I include this in an app (for testing) I get output to the main form and to my text file. Any ideas how I turn the output to the main form off?
Paul,
Surround your SQL statements with
SET CONSOLE OFF and
ONbye
----------------------------------
António Tavares Lopes