Solved

Firing Order of Events

Posted on 2004-10-13
6
392 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
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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
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…

929 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now