Removing form instance from collection does not close form (1 Viewer)

joeKra

Registered User.
Local time
Today, 03:31
Joined
Jan 24, 2012
Messages
208
Hi Guys

i am using the method from allen browne http://allenbrowne.com/ser-35.html to open a form and add it to a collection and when removing it it closes. actually, usually it does work so but i have now a form which does not close until i am hitting the reset button in VBE , is there something i could check why it's not functioning as desired ?

Just to add, this form has a subForm as well (might be the cause ?)

Thanks in advance !

Joe
 

Galaxiom

Super Moderator
Staff member
Local time
Today, 17:31
Joined
Jan 20, 2009
Messages
12,859
Can't be specific without seeing the code but bhe form will probably be persisting because it is still designated by a variable as well as being in the collection.
 

joeKra

Registered User.
Local time
Today, 03:31
Joined
Jan 24, 2012
Messages
208
I caught the problem. i have a control what the control source is a function from the form itself.(=IIf(notactive(),"NOT ACTIVE",""))

well, it's not understandable why it happens, but at least i know what causes (G-D knows who made me thinking that this should cause it :))
 

Users who are viewing this thread

Top Bottom