Close one form from a command button on another

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

Guest

I need to totally close (not hide) a form by clicking a button on another one.
How do I do this?

--
Adam Thwaites
Access Database Designer
Manchester, UK
(I have no access to other sites apart from microsoft.com so posting
external links is no use to me)
 
DoCmd.Close acForm, "NameOfFormHere"

You may be used to using DoCmd.Close on its own, as all of its arguments are
optional, but as you can see from the example above it does have optional
arguments that increase its flexibility. Check it out in the help file.
 
Back
Top