Hi,
Is there anyone knows the difference between Form_load and
Form_Open?
Thanks!
XR
The help file does. Did you look there first?
---- quoting from help entries ----
Open Event
The Open event occurs when a form is opened, but before the first record
is displayed.
Load Event
The Load event occurs when a form is opened and its records are
displayed.
When you first open a form, the following events occur in this order:
Open ==> Load ==> Resize ==> Activate ==> Current
If you're trying to decide whether to use the Open or Load event for
your macro or event procedure, one significant difference is that the
Open event can be canceled, but the Load event can't. For example, if
you're dynamically building a record source for a form in an event
procedure for the form's Open event, you can cancel opening the form if
there are no records to display.
---- end of quote ----
The form's Open event occurs before the form's recordsource is queried,
making it a good time to set or modify the recordsource. Note that it
is possible to execute code in an event procedure for the form's Open
event that forces the recordsource to be queried and the Load event to
fire before the Open event procedure finishes.