Notifying one form that another has closed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have two forms in Access 2002: frmParent and frmChild. frmParent opens
frmChild.

Is it possible to notify frmParent that frmChild closed without frmChild
knowing about frmParent?

Seems like something that can be done with events (and implements?), but
I’ve never successfully used those statements or seen an example similar to
what I’m trying to do.

I would appreciate any insights and if this is possible a simple example
would be great!
 
No, frmChild would have to notify frmParent by populating a control on
frmParent in it close event.
 
I just thought of another way.
You could put a timer event in frmParent and in the event, see if frmChild
is loaded:

If CurrentProject.AllForms("frmChild").IsLoaded Then
Do your sutff here
End If
 
If your requirement is such that frmParent has to wait until frmChild closes
before it (frmParent) continues, then you can open frmChild as modal
(Windowmode is set to acDialog ). That way, frmParent will wait until
frmchild is closed before continuing.

John

I just thought of another way.
You could put a timer event in frmParent and in the event, see if frmChild
is loaded:

If CurrentProject.AllForms("frmChild").IsLoaded Then
Do your sutff here
End If
Wow! That was quick and definitive -Thank you!
[quoted text clipped - 13 lines]
 
Back
Top