Can a Control close a form from a SubForm

  • Thread starter Thread starter Bob Vance
  • Start date Start date
Can a Control on the Child subForm close the form it is On?

Sure. You want to close the *parent* form? (A subform cannot be "closed" as it
is not actually "open"). If so, put code in the appropriate control event:

DoCmd.Close acForm, Parent.Name, acSaveNo
 
Back
Top