Mark Rock
Registered User.
- Local time
- Yesterday, 19:07
- Joined
- Jan 5, 2007
- Messages
- 16
I know this forum has a ton of posts related to closing a forum, but I have not had one workout for my purposes.
I have used CreateForm to open a new form from a template form. When I am done with it, I want it to go away and to do so quietly.
I have tried both
DoCmd.Close acForm, myfrm.Name, acSaveNo
and
DoCmd.RunCommand acCmdClose
The first works in that the form is no longer on top (it effectively returns focus to my module code), but it does not actually close the form. It is open in the background if I close/minimize the stuff on top of it. Seems to be of little difference to myfrm.Visible = False.
The second command works (almost) completely, but I have to click on a system invoked msgbox that I do not wish to save changes to the form before it goes away.
I would like to have the form close completely without asking me to save it.
Help please.
I have used CreateForm to open a new form from a template form. When I am done with it, I want it to go away and to do so quietly.
I have tried both
DoCmd.Close acForm, myfrm.Name, acSaveNo
and
DoCmd.RunCommand acCmdClose
The first works in that the form is no longer on top (it effectively returns focus to my module code), but it does not actually close the form. It is open in the background if I close/minimize the stuff on top of it. Seems to be of little difference to myfrm.Visible = False.
The second command works (almost) completely, but I have to click on a system invoked msgbox that I do not wish to save changes to the form before it goes away.
I would like to have the form close completely without asking me to save it.
Help please.
Last edited: