Results 1 to 5 of 5

Thread: Is it possible to start a function after the from_load event has finished

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    Is it possible to start a function after the from_load event has completly finished ??

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Location
    Brossard, Québec, Canada
    Posts
    241

    Post

    well couldn't you call your function and the very end of the form load just before the END SUB?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 1999
    Posts
    309

    Post

    Nope, that's starting a function just before form_load ends...

  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    It is possible with this work around:

    Code:
    Option Explicit
    
    Private m_bIsFormLoaded As Boolean
    
    Private Sub Form_Activate()
        If m_bIsFormLoaded Then
            'Call your functions here
            m_bIsFormLoaded = False
        End If
    End Sub
    
    Private Sub Form_Load()
        'Do your stuff for form load
        m_bIsFormLoaded = True
    End Sub

    Regards,

    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]



  5. #5
    New Member
    Join Date
    Nov 1999
    Location
    Minsk, Belarus
    Posts
    11

    Post

    Try to call this function in Form_Activate sub... ???

Posting Permissions

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



Click Here to Expand Forum to Full Width