Weird Problem with DoCmd.Maximize

M

Mark Andrews

I have an Access2007 database that I would like to have a number of forms
maximized when they are opened and stay that way.

I put
DoCmd.Maximize in both the Form_Open and Form_Activate events

and sometimes it works fine and sometimes the form doesn't show up
maximized.

I test by opening the database and clicking on a custom ribbon button which
is set to open the form.

Anyone have any ideas? Do I have to put a loop around DoCmd.Maximize or
something?
Or do I have to goto some hack method just to get forms to maximize
consistantly in Access2007?

I have the database options set to overlapping windows.

Thanks in advance,
Mark
 
L

Larry Daugherty

Access has some dysfunctional behaviors. You're being plagued by one
of them. I don't know if they've fixed it in the latest iteration ...

If you absolutely, positively want a given Form always Maximized then
put your code in the OnCurrent event.

HTH
 
M

Mark Andrews

Thanks I'll give OnCurrent a try.

Larry Daugherty said:
Access has some dysfunctional behaviors. You're being plagued by one
of them. I don't know if they've fixed it in the latest iteration ...

If you absolutely, positively want a given Form always Maximized then
put your code in the OnCurrent event.

HTH
 

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

Similar Threads

docmd.maximize 3
DoCmd.Maximize and Center 5
Form maximize problem 2
Access MDI form positioning 2
Form Design Problem Access2007 3
Maximize Question 3
Maximize the form on the screen 6
Maximize Form 1

Top