Solved

Firing Order of Events

Posted on 2004-10-13
6
430 Views
Last Modified: 2008-02-01
Which fires first, Form_Open, or Form_Load?

Where is a web resource that I can check this?
0
Comment
Question by:Moother
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Assisted Solution

by:StuartSanders
StuartSanders earned 180 total points
ID: 12296040
open
0
 
LVL 34

Assisted Solution

by:flavo
flavo earned 50 total points
ID: 12296042
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
 
LVL 34

Expert Comment

by:flavo
ID: 12296046
>>open the load

open then load
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 9

Assisted Solution

by:Bat17
Bat17 earned 20 total points
ID: 12296062
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
 
LVL 3

Accepted Solution

by:
StuartSanders earned 180 total points
ID: 12296087
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
 
LVL 3

Author Comment

by:Moother
ID: 12296235
Thanks Chasps!!!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question