Results 1 to 7 of 7

Thread: [RESOLVED] Error Clear

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    507

    Resolved [RESOLVED] Error Clear

    Hi All

    I have a two forms:

    Form1 and Form2. here is a sample code:

    in form2:
    Code:
    Private Sub Form_Load()
    
    On Error GoTo ErrorLable
    
    
    'code...............
    
    ExitSub:
    Exit Sub
    
    ErrorLable:
    
    err.clear
              
     GoTo ExitSub:
     
    End Sub


    in form1:

    form2.hide

    code.....

    form2.hide

    if an error occurs in Form2 and want to call it again from form1, it will skip over it and I cannot call form2 again. what can I do to call form2 again even if it had an Error.

    thanks

    Wajdi

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    507

    Re: Error Clear

    Go it its fixed

  3. #3
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Error Clear

    if it is fixed, please go to "Thread Tools" and "Mark Thread Resolved".

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Error Clear

    Also, please tell us what you did to resolve your issue.

    It may help someone else.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Posts
    507

    Re: [RESOLVED] Error Clear

    The fix was I was using a form instead of a module, using a module fix the issue,

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [RESOLVED] Error Clear

    Thank you wajdi, for posting back!

  7. #7
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: [RESOLVED] Error Clear

    Thanks Wajdi

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