Help with closing forms

E

erick-flores

Hello all

I have this button that will open other forms. Because the users will
be opening different forms at a time ( like jumping from one form to
another one) I need to write some code for On Click Event so the form
will close and then open the other one. I now I can do this w/o coding
just selecting from the Rules and Custom Code>Rules>Add>Add Action>Open
a new form to fill put BUT then when you click an open the other form,
the other form still open it does not close. So if you open different
forms you will have like 12 windows open. So I just want to open-close
open-close.

Can somebody help me to write this code please?

Thank you
 
Top