Close the Parent from the Child

  • Thread starter Thread starter Jacinda
  • Start date Start date
J

Jacinda

Hello,

is there a way for me to have a button control on the child form that will
close the parent form?
 
An unusual question.
Is the child form a subform of the parent, or are they two forms open at the
same time?
What interaction or filtering exists between the forms?

Can you describe what you want to accomplish and maybe we can help with how
to do it.
 
Hello,

is there a way for me to have a button control on the child form that will
close the parent form?

As long as the subform is NOT in Datasheet view, yes.

Code the click event of a command button (in the subform footer in
Single View or Continuous View)
:
DoCmd.Close acForm, Me.Parent.Name

Why do you need to do this from the subform instead of from the main
form?
 
This is what I needed, thank you..

I need to close the form from the sub because I'm trying to keep the
continuity of the tabstop.... there are really no fields on the main form,
it's really just a header with the subform in the body.

It it opened from a link on a preceeding form, and the subform is a "add new
order" form... if that makes any sense...
 
Back
Top