Results 1 to 3 of 3

Thread: [RESOLVED] drive box & errors

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    9

    Resolved [RESOLVED] drive box & errors

    I have drive box in my form. Selecting drive a: displays run-time error 68 and programm stops. I read about error handling and I want to instead of run-time error shows some msgbox. I tried to put On Error GoTo 0 everywhere: in form_load(), in drive1_change(), in drive1_click() but it doesn`t work. What should I do to make my custom error?

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

    Re: drive box & errors

    VB Code:
    1. Private Sub Drive1_Change()
    2. On Error Goto ErrTrap
    3. 'code
    4. Exit Sub
    5. ErrTrap:
    6. 'error trapping code goes here
    7. End Sub

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    9

    Re: drive box & errors

    thanx, I was putting on Error GoTo after function code, but it have to put it before function code

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