p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Access (http://p2p.wrox.com/forumdisplay.php?f=18)
-   -   Closing a form after opening another form (http://p2p.wrox.com/showthread.php?t=36892)

rosebushr January 6th, 2006 04:36 PM

Closing a form after opening another form
I am very new to programming so please speak slowly to me. I am working on a program that uses forms instead of switchboards to navigate from one form to another (please don't ask me why I am doing it this way). The problem that I am having is that when I use a macro to take me from one form to the next, it leaves the old form open. I want the old form to close when I open the new one. How do I go about doing this? I am looking for a universal way of closing the form and not just closing it from a specific form. I know I can use a docmd.close but I am not always coming from the same form form. I can come to the new form from multiple different directions. So I need commands that generically close an old form before they open the new form.

Please be specific because I will just be copying whatever you tell me to do. Thank you for your help.

kindler January 6th, 2006 05:36 PM

In the form calling to open a new one, end whatever function is opening the new form with this:

    DoCmd.OpenForm "frmName"

anukagni January 7th, 2006 04:34 AM

Did u understand the above said it may good but u can use the switch board or give the exit option for colse the pervious from before moving to the another from . how ur Operating the opening do u have an main menu to go to the other froms ? or ur using an coomand button each from to nevigate to others


All times are GMT -4. The time now is 07:50 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.