|
-
May 22nd, 2006, 12:16 PM
#1
Thread Starter
New Member
[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?
-
May 22nd, 2006, 12:18 PM
#2
Re: drive box & errors
VB Code:
Private Sub Drive1_Change()
On Error Goto ErrTrap
'code
Exit Sub
ErrTrap:
'error trapping code goes here
End Sub
-
May 22nd, 2006, 01:07 PM
#3
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|