This simple piece of code will keep an MDI Child form from openining more than once in its parent
openform(frm)