Results 1 to 3 of 3

Thread: on error

  1. #1

    Thread Starter
    Addicted Member nota141's Avatar
    Join Date
    Feb 2000
    Location
    The place down there under everyone else.
    Posts
    224

    on error

    just wanted to know and i can test it my self at the moment but would this work

    Code:
     
        On Error Resume Next
           other code
           If somthing Then
                On Error GoTo errorlog
                do some stuff that may cause errors
                On Error Resume Next
            Else
                Do other stuff 
            End If
    because above and below there are errors that may be generated but can be skiped but in the do some stuff that may cause errors i need to report the error so that code i have in another sub will not run.
    On Error wake up and try again ;-)
    ___________________________
    ICQ # 65392645
    email - [email protected]

    Visual Studio 6 ent with SP5 Running on XP with an AMD 1.2 ThunderBird with 512 MB RAM And a 120GB primary HDD (very sweet)

  2. #2
    It looks like it should. BTW, to turn off error checking, you can use On Error Goto 0.

  3. #3
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258
    should work

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