P
Patrick386
Hello!
if I have created an object Form1 of type myForm as follow:
SET Form1 = New myForm
Where Form1 is Declared in a module as public like follow:
Public Form1 AS myForm
The problem that I am facing is that when I clear the object using
Fomr1 = Nothing in a procedure of closing put inside myForm
this object is only hidden and when I check with IF Form1 Is Nothing Then ...the test always says that it is not equal to Nothing after the first time that I've set the object. I need to open the form 'myForm' in Design View to clear all the object attached to this form.
I cannot use the function DoCmd.Close acForm, me.Name because I have many instances of myForm opened at the same time. and if I close "myForm", it will close the first one opened.
So how can I reset the object completely form the memory?
Thanks for any suggestion
Best regards
if I have created an object Form1 of type myForm as follow:
SET Form1 = New myForm
Where Form1 is Declared in a module as public like follow:
Public Form1 AS myForm
The problem that I am facing is that when I clear the object using
Fomr1 = Nothing in a procedure of closing put inside myForm
this object is only hidden and when I check with IF Form1 Is Nothing Then ...the test always says that it is not equal to Nothing after the first time that I've set the object. I need to open the form 'myForm' in Design View to clear all the object attached to this form.
I cannot use the function DoCmd.Close acForm, me.Name because I have many instances of myForm opened at the same time. and if I close "myForm", it will close the first one opened.
So how can I reset the object completely form the memory?
Thanks for any suggestion
Best regards