|
Subject:
|
Closing a form after opening another form
|
|
Posted By:
|
rosebushr
|
Post Date:
|
1/6/2006 3:36:33 PM
|
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.
|
|
Reply By:
|
kindler
|
Reply Date:
|
1/6/2006 4:36:28 PM
|
In the form calling to open a new one, end whatever function is opening the new form with this:
DoCmd.Close DoCmd.OpenForm "frmName"
|
|
Reply By:
|
anukagni
|
Reply Date:
|
1/7/2006 3:34:15 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
anuk.p.p
|