Open Event or Load Event

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abolos
    New Member
    • Apr 2007
    • 65

    Open Event or Load Event

    Hi all,

    I have a question. If I have a form that has a vb code in the Open Event and another code in Load Event, which one starts before when running this form? Does the Load Event code runs before or the vise versa?

    Thank you,
    Abolos
  • dima69
    Recognized Expert New Member
    • Sep 2006
    • 181

    #2
    Originally posted by abolos
    Hi all,

    I have a question. If I have a form that has a vb code in the Open Event and another code in Load Event, which one starts before when running this form? Does the Load Event code runs before or the vise versa?

    Thank you,
    Abolos
    Generally, Open event fires before Load event. But you cannot be sure that Load event will fire AFTER the code in Open event will be completed.
    Moreover, if your form is actually a subform, the Open and Load events for that form can run more then once, in that case the event sequence can be quite messed up.

    Comment

    • missinglinq
      Recognized Expert Specialist
      • Nov 2006
      • 3533

      #3
      The order of events is

      Open - Load - Resize - Activate - Current

      When you invoke a form with subform(s) they actually load before the main form does.

      Linq ;0)>

      Comment

      • abolos
        New Member
        • Apr 2007
        • 65

        #4
        Thank you guys for your assistance regarding this matter,
        Abolos

        Comment

        • missinglinq
          Recognized Expert Specialist
          • Nov 2006
          • 3533

          #5
          That's why we're here!

          Linq ;0)>

          Comment

          Working...