By Richard Rost 2 years ago
Close an Open Form using DoCmd.Close
In this video I'm going to teach you how to close one form when another is closed. It involves ONE line of VBA coding, but don't be afraid. I'll show you exactly how to do it.
Claudia from Henderson, Nevada (a Platinum Member) asks: I have a couple of "additional info" forms that I can open for a customer, such as their contacts, orders, service calls, etc. I like to keep these as separate forms much like you do in your Free Customer Template. It's a pain to have to close them all individually whenever I'm done with a customer. Is there a way to link them all so they close whenever I close the customer form?
Members will learn how to loop through ALL open forms and close them, except for the Main Menu form.
Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to register on my YouTube Find User page so I can set up your account here on my web site. If you're not a member, Join Today!
microsoft access, ms access, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #instruction, #learn, #lesson, #training, #database, onclose, on close, on close event, close form, closeform, close all open forms, loop through forms, loop through all forms, close all forms
Subscribe to Close Form
Get notifications when this page is updated