Close the Parent from the Child

J

Jacinda

Hello,

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

Klatuu

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.
 
F

fredg

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?
 
J

Jacinda

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top