Results 1 to 3 of 3

Thread: [RESOLVED] Error handling

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Resolved [RESOLVED] Error handling

    How to get the error message other than this error number?

    Code:
    If Err.Number = 68 Then
    MsgBox "Pastikan anda telah memasukkan CD anda", vbCritical, "Kesilapan"
    frmSpatial.Drive1.Drive = Text3.Text
    frmSpatial.Dir1.Path = Text3.Text
    frmSpatial.File1.Path = frmSpatial.Dir1.Path
    Exit Sub
    End If

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

    Re: Error handling

    Use Err.Description

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Re: Error handling

    Thank you

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