Confused about OnActivate and OnLoad

  • Thread starter Thread starter Ryan
  • Start date Start date
R

Ryan

What is supposed to go in OnActivate and OnLoad for a form.
What is the difference? I want something to happen only
the first time the form is displayed, not when I return to
the form after going to other forms.
- Ryan
 
From the help file:
The Open event occurs when a form is opened, but before the first record is
displayed.

The Load event occurs when a form is opened and its records are displayed.

The Activate event occurs when the form or report receives the focus and
becomes the active window.

To get to this easily, place the cursor in the box for the event in the
Properties sheet for the form and press F1.


If you don't want it to fire each time you return to the form, use the
OnLoad.
 
Back
Top