PC Review


Reply
 
 
=?Utf-8?B?dGx5bm4=?=
Guest
Posts: n/a
 
      17th Jul 2007
I have a "Main Menu" switchboard style form that has numerous buttons that
open forms. Each button opens a form, and each form has a menubar/toolbar
that has a "Exit", "Main Menu", "Filter", etc. buttons at the top. Once I
open a form and press the "Main Menu" button, the original form stays open.
How can I close this form using this "Main Menu" button. I am not sure where
the vba code would be.

Thank You - Tim
 
Reply With Quote
 
 
 
 
SusanV
Guest
Posts: n/a
 
      17th Jul 2007
In the On Click event of the "Close Form" button, put 2 lines - one to
reopen the Main Menu form and one to close this form:
DoCmd.OpenForm "MainMenuForm
DoCmd.Close acForm, "ThisFormsName"

--
hth,
SusanV

"tlynn" <(E-Mail Removed)> wrote in message
news52D9577-7328-4253-8BC3-(E-Mail Removed)...
>I have a "Main Menu" switchboard style form that has numerous buttons that
> open forms. Each button opens a form, and each form has a menubar/toolbar
> that has a "Exit", "Main Menu", "Filter", etc. buttons at the top. Once I
> open a form and press the "Main Menu" button, the original form stays
> open.
> How can I close this form using this "Main Menu" button. I am not sure
> where
> the vba code would be.
>
> Thank You - Tim



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
docmd.close forms - doesn't close the form Wuelf Microsoft Access Reports 1 18th Nov 2008 01:05 PM
Access Close Event: What Order Do Forms Close? misseill Microsoft Access 1 14th May 2007 10:03 PM
How to close the parent and all child forms together at once when click on parent window's close button X. VBLearner Microsoft VB .NET 2 25th Sep 2006 05:57 AM
Forms: Buttons to open other forms and close button Veli Izzet Microsoft Access 3 23rd Aug 2005 07:44 AM
All Forms Close on DoCmd.Close Karen Microsoft Access Form Coding 4 22nd Mar 2004 08:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:31 PM.