Confused about OnActivate and OnLoad

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
 
W

Wayne Morgan

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.
 

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

Top