Close one form from a command button on another

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)
 
B

Brendan Reynolds

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.
 

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