Larry,
Your object variable is going out of scope and wehn it does so does the form it refers to. There are a number of ways to fix this, but the best way is to have a form manager object. In your form manager you add a launchform method. All forms are launched by calling the launch form method of teh from manager.
The form manager also has an array property that is used to store the form references, so launching a form becomes;
THIS.oForms(
) = CreateObject(...)
SomeNumber is the next entry in the array. You also have to provide a way to remove forms from the collection.