my own "switchboard" form

K

Karen

I have created my own menu (switchboard) form. I just have a few labels and
buttons with code as the event procedures.

When I click on a button to perform a function (open a form) and then close
that form the menu form is not maximized any more.
The form properties are
Default View Single form
Allow Form View Yes
Allow data sheet No
Allow PivotTable No
Allow PivotChart No
Scroll Bars Neither
Record Selectors No
Navigation Buttons No
Dividing Lines No
Auto Resize Yes
Auto Center Yes
Border Style Sizable
Control Box No
Min Max Buttons No
Close Button No
Whats this button No
Width 10.0625"


How do I make that form stay maximized? Do I need to close the menu form,
open the form that does the function requested, close that form, open the
menu form again in each event procedure?

Thanks in advance for all of your help.

Karen
 
F

fredg

I have created my own menu (switchboard) form. I just have a few labels and
buttons with code as the event procedures.

When I click on a button to perform a function (open a form) and then close
that form the menu form is not maximized any more.
The form properties are
Default View Single form
Allow Form View Yes
Allow data sheet No
Allow PivotTable No
Allow PivotChart No
Scroll Bars Neither
Record Selectors No
Navigation Buttons No
Dividing Lines No
Auto Resize Yes
Auto Center Yes
Border Style Sizable
Control Box No
Min Max Buttons No
Close Button No
Whats this button No
Width 10.0625"

How do I make that form stay maximized? Do I need to close the menu form,
open the form that does the function requested, close that form, open the
menu form again in each event procedure?

Thanks in advance for all of your help.

Karen

Normally, if you have maximized a form, all other forms should remain
maximized.
Check the code in the Close event of that other form.
You may have a DoCmd.Restore there. That will cause the next form to
not be maximized. Simply delete that line.

Another solution is to place
DoCmd.Maximize in the Menu form's Open event.
 
K

Karen

Fredg,

Thanks for the response.

I've got docmd.maximize in the On Current, On Open and On Get Focus events
for the main menu.
I've checked all of the code of the forms that are opened by the main menu
button and none of them have docmd.restore in them.

K-
 
K

Karen

I found an old post about using the docmd.maximize in the On Activate event.
That worked for me.

I need to figure out what all of those events do. I was thinking a form
'Got Focus' when it was the one showing.
Guess not!


Karen said:
Fredg,

Thanks for the response.

I've got docmd.maximize in the On Current, On Open and On Get Focus events
for the main menu.
I've checked all of the code of the forms that are opened by the main menu
button and none of them have docmd.restore in them.

K-
labels
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top