What I see the code in post#18 doing is refreshing each form.
The reason I mention to not
set frm = nothing
is so you do not abolish your instance of the form. Yes, your form is still open. That is because you never closed it using frm.close.
I should have thought of this last night. I was stuck on keeping the instance open and using it to refresh the form. What you can do is declare an integer that is available globally, like gintNewFrmHandle
In your original code that creates the instance use the following
Set frm = New Form_frmSchoolsFound
frm.Visible = True
gintNewFrmHandle = frm.hwnd
Then you can use this global variable in another form's module. Something like...
Code:
dim frm as forms
For Each frm In Forms
If frm.hwnd = gintNewFrmHandle Then
frm.Requery
Exit For
End If
Next
That should do it. It is a similar approach to your UDF in post #10. Only this way you have a global variable that is designated for THAT SPECIFIC form and you iterate the collection without a UDF that you pass the handle to.