Thanks your suggesstion worked. To obtian the desired result I had to place SET TALK OFF in the load event. Calling my SetEnvironment method from the Form Load event did not work (TALK is set to OFF in this method). Why was I unable to use the SetEnvironment method?