From: ericb on
I would like a form to open up and to take up the hole screen, or to maximize
automatically. It is presently opening with the PopUp property set to yes.

I put in the on load event these lines :
me.setfocus
docmd.maximize

but it does not do it.

I still have to click the maximize button on the form to get it to take up
the hole screen.

What else should I do ?

Thank you for the tip.
--
Eric
From: Jeanette Cunningham on
Put this line of code

DoCmd.Maximize


on the form's activate event.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"ericb" <eric(a)b.com> wrote in message
news:8F61EEE0-7504-4D53-A958-6202C68203A3(a)microsoft.com...
>I would like a form to open up and to take up the hole screen, or to
>maximize
> automatically. It is presently opening with the PopUp property set to yes.
>
> I put in the on load event these lines :
> me.setfocus
> docmd.maximize
>
> but it does not do it.
>
> I still have to click the maximize button on the form to get it to take up
> the hole screen.
>
> What else should I do ?
>
> Thank you for the tip.
> --
> Eric


From: Dirk Goldgar on
"ericb" <eric(a)b.com> wrote in message
news:8F61EEE0-7504-4D53-A958-6202C68203A3(a)microsoft.com...
>I would like a form to open up and to take up the hole screen, or to
>maximize
> automatically. It is presently opening with the PopUp property set to yes.
>
> I put in the on load event these lines :
> me.setfocus
> docmd.maximize
>
> but it does not do it.
>
> I still have to click the maximize button on the form to get it to take up
> the hole screen.
>
> What else should I do ?


That code in the Load event works for me in a test popup form, in both
Access 2003 and Access 2007. My guess is that something else is going on,
but I don't know what it might be. Have you verified that the code in the
event procedure is actually being executed? If you set a breakpoint in the
procedure, is it reached?

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

From: Dirk Goldgar on
"Jeanette Cunningham" <nnn(a)discussions.microsoft.com> wrote in message
news:urSWvE12KHA.556(a)TK2MSFTNGP04.phx.gbl...
> Put this line of code
>
> DoCmd.Maximize
>
>
> on the form's activate event.


So far as I can tell, the Activate event doesn't fire for PopUp forms.

--
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.html

(please reply to the newsgroup)

From: ericb on
In the on load event i put msgbox "load".

The odd thing is i get the message when i click the close button of the form.
I don't get this one, a message in the on load event appears when i close
the form !!!

So i removed those lines in the on load event and put them just before the
last one in the on open event. The last line being :

DoCmd.ShowToolbar "Ribbon", acToolbarNo

and everything works fine. God knows why !

I think I am making a phobia on the ms button. That last line clears
everything and then my form will cover all of the rest.

I will remove the min max options so the user will stay no matter what in my
application. I hope. They will have a logout button.

How can i replace the microsoft form icon that appears on an open form by
mine ?


--
Eric


"Dirk Goldgar" wrote:

> "ericb" <eric(a)b.com> wrote in message
> news:8F61EEE0-7504-4D53-A958-6202C68203A3(a)microsoft.com...
> >I would like a form to open up and to take up the hole screen, or to
> >maximize
> > automatically. It is presently opening with the PopUp property set to yes.
> >
> > I put in the on load event these lines :
> > me.setfocus
> > docmd.maximize
> >
> > but it does not do it.
> >
> > I still have to click the maximize button on the form to get it to take up
> > the hole screen.
> >
> > What else should I do ?
>
>
> That code in the Load event works for me in a test popup form, in both
> Access 2003 and Access 2007. My guess is that something else is going on,
> but I don't know what it might be. Have you verified that the code in the
> event procedure is actually being executed? If you set a breakpoint in the
> procedure, is it reached?
>
> --
> Dirk Goldgar, MS Access MVP
> Access tips: www.datagnostics.com/tips.html
>
> (please reply to the newsgroup)
>
 |  Next  |  Last
Pages: 1 2
Prev: Getting Windows System Colors
Next: Scheduler Question