Results 1 to 5 of 5

Thread: Unload

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    belgium
    Posts
    74

    Question

    How can I trigger an unload event of a form, when I change a combobox?

    Thanks

  2. #2
    Guest
    In the combo1_click or change events, put this:

    Code:
    Unload Me

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    belgium
    Posts
    74
    This doesn't work

    This error is create:

    Unload in the change/click or dropdown event of the
    combobox doesn 't work. This is not allowed.


    Isn't there an other solution?

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    maybe this isn't the most elegant way but:

    Code:
    Private Sub Combo1_click()
    'Call our home-made function to Unload the form
    Call Unloadme
    End Sub
    
    Private Sub Unloadme()
    'Really Unload me now :)
    Unload Me
    End Sub
    Hope it worked
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5
    Guest
    You should also set the form to nothing.

    Code:
    Unload Me
    Set Form1 = Nothing
    End

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