Maximized Form Changes to Restore Mode

  • Thread starter Thread starter divotdave
  • Start date Start date
D

divotdave

Guest
:confused:

I have a db app that has all forms maximized continually (I have set the vba code to do so on Open, Close and GotFocus events). From my app Home Page form the user can browse to other forms in the db. When another form is opened the window automaically maximizes. However, when the user navigates back to the Home Page it goes in restore mode. I haven't told it to do this anywhere. I have also tried saving the form stretched out to fit the full screen, so that if it goes into restore mode it at least still fills the screen, but it still reverts to a restored window (about half the screen). It doesn't matter what configuration I use in the AutoResize, AutoCenter properties either.

I have been developing custom db apps in Access for over 8 years. However, this seems to be a stupid (albeit simple) problem that is annoying me. I currently use Access 2003 and this issue is new (or so I believe since I never ran into the problem in previous versions).

Any ideas?

Thanks...
 
You can try a DoCmd.Restore in the OnOpen event of your main menu and see if that keeps your forms maximized when the user reopens it.

You are closing all of your forms and only opening them when needed?
 
I'll try it...

It hasn't mattered if I leave the forms open continually or close them and re-open them.

Thanks for the idea...any others?
 
I Have the same problem. When I open another form (in restore mode) the original form also goes into restore mode. Very annoying!

Does anyone have an answer?
 
Hi Divotdave,

Try putting the 'docmd.maximize' into the the forms 'Activate' event i.e.

Private Sub Form_Activate()

On Error Resume Next

DoCmd.Maximize

End Sub
 
divotdave said:
I have set the vba code to do so on Open, Close and GotFocus events.
For reference, there's little point in putting such code in the form's GotFocus as a form will rarely ever have the focus. The only time a form will have the focus is if it has no enabled controls.
 
I have the same problem. Did anyone ever find a solution to this?
 

Users who are viewing this thread

Back
Top Bottom