Results 1 to 3 of 3

Thread: On Load Event

  1. #1
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is this a bug in Access ?

    When you open a database with the database window hidden (or the navigation pane in an accdb database), if two forms are open and you close Access with the close button in the right upper corner (X), the on load event of the active form trigger off. Tested in Access 2003(mdb), 2007(accdb), 2010Beta(accdb).

    See attached mdb for a sample.
    [attachment=87278:test.zip]
    Attached Files Attached Files
    Francois

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    That's weird - it certainly looks like a bug, and it occurs in Access 2002 too.

    Even weirder - I added a message box to the On Load event of Form1 too. Even if I activate Form1 again after opening Form2, only Form2's On Load event is triggered when I exit Access. So it's not the On Load event of the active form...

  3. #3
    5 Star Lounger AndrewKKWalker's Avatar
    Join Date
    Apr 2001
    Location
    Cambridge, UK
    Posts
    1,020
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by HansV View Post
    That's weird - it certainly looks like a bug, and it occurs in Access 2002 too.

    Even weirder - I added a message box to the On Load event of Form1 too. Even if I activate Form1 again after opening Form2, only Form2's On Load event is triggered when I exit Access. So it's not the On Load event of the active form...
    If you load 3 forms it activates against the last loaded form at startup.
    Even if a different one has the focus.
    SO it is the last loaded forms LOAD event that appears to be triggered.
    BUT.. Only if they are visible.
    If you load them hidden, the Event is not triggered.
    Andrew

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •