Maximize

  • Thread starter Thread starter LMB
  • Start date Start date
L

LMB

Hi Everyone,

Using Access 2000 and in the past I use the On Open property on my forms and
open up the macros and use the Maximize command and name it mcrMaximizeForm.
Is this the best way to do it? Also, in the database I am building right
now, I have several forms I want to use this on, can I use the same macro
for multiple forms on the On Open property?

Thanks,
Linda
 
If you want to use a macro, then what you're doing should work fine.

Yes, you can use the same macro for multiple forms.
 
Thanks, Ken. I use macros because I know how to get to them, is there
another way or a better way?

Thanks,
Linda
 
I usually use the form's Load event and run very simple code:

Private Sub Form_Load()
DoCmd.Maximize
End Sub
 
I used the macro then I opened it up in the properties and used event
procedure, But I can't see the code anywhere. Do you get to the load event
from the properties of the form, I see it below the open event in my list?
What is the difference between on open and on load and why do you use the
code instead of the maximize macro?


Thanks,
Linda
 
I use the code for consistency with my other programming in the form. As I
noted, there is nothing wrong with using the macro.

To put the code into the form's Load event, select [Event Procedure] from
the dropdown box next to On Load property for the form (Properties window,
Event tab). Then click the "..." button at far right. You'll see the first
and third lines that I'd typed, with a blank line in the middle. Type my
second line on that blank line.
 
Thanks, I'll start using that just to get started using code.

Linda

Ken Snell said:
I use the code for consistency with my other programming in the form. As I
noted, there is nothing wrong with using the macro.

To put the code into the form's Load event, select [Event Procedure] from
the dropdown box next to On Load property for the form (Properties window,
Event tab). Then click the "..." button at far right. You'll see the first
and third lines that I'd typed, with a blank line in the middle. Type my
second line on that blank line.

--

Ken Snell
<MS ACCESS MVP>

LMB said:
I used the macro then I opened it up in the properties and used event
procedure, But I can't see the code anywhere. Do you get to the load
event from the properties of the form, I see it below the open event in my
list? What is the difference between on open and on load and why do you
use the code instead of the maximize macro?


Thanks,
Linda
 
Back
Top