Hi N guetta,
When you try load your form in frm variable, do it with something like this:
Application.SBO_Application.Forms.GetForm("Id of your form", 1);
P.S: Your form should be open before call this line.
Or if your form is active in the screen you can use :
Application.SBO_Application.ActiveForm;
Hope it helps,
Diego