Firing Order of Events

Which fires first, Form_Open, or Form_Load?

Where is a web resource that I can check this?
LVL 3
MootherAsked:
Who is Participating?
 
StuartSandersCommented:
OK found what I was looking for.

1. In Access, hit F1.
2. Type in "open event"
3. Click Search
4. There should be an entry called "Open Event".  Select it
5. About half way down the page it gives the event order

Stuart
0
 
StuartSandersCommented:
open
0
 
flavoCommented:
open the load

try this, create a new form and add this code

Option Compare Database

Private Sub Form_Load()
MsgBox "load"
End Sub

Private Sub Form_Open(Cancel As Integer)
MsgBox "open"
End Sub


dave
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
flavoCommented:
>>open the load

open then load
0
 
Bat17Commented:
Not from online, but from Help

"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."

Peter
0
 
MootherAuthor Commented:
Thanks Chasps!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.