Solved

Firing Order of Events

Posted on 2004-10-13
6
381 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

17 Experts available now in Live!

Get 1:1 Help Now