Results 1 to 2 of 2

Thread: unload within Form_Load event

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    Thailand
    Posts
    221

    Question unload within Form_Load event

    I try to use Unload Me in Form_Load event.My algo. is in form load event I call function that its data type is boolean,that will return true of false value.If this function returns false I want to unload the form.
    My code look like:

    Private Sub Form_Load()
    If Not PondClass.AddFinishCombo(cboID) Then Unload Me
    End Sub

    When the function return false value,error will occur.

    How can I solve this problem?
    Teeravee Sirinapasawasdee
    Gestalt IT Consulting Group
    Growth Your Business With e-Process

  2. #2
    Addicted Member stevess's Avatar
    Join Date
    May 2001
    Posts
    251
    Put the code in Form_Activate instead.

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