Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error # 0 encountered
Message
 
To
20/11/1998 13:01:05
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00159792
Message ID:
00159943
Views:
26
>
>Eric, here's the code(part of it)
>>>>>>>>>>>>>>>>>>>>>
><< on error goto erline
>Case "MANAGER"
> icntr = rdNinvm.Fields.Count
> For Each contr In Me.Controls
> If TypeOf contr Is TextBox And UCase(contr.Tag) = UCase(Trim(str)) Then
> For j = 0 To icntr - 1
> If UCase(rdNinvm.Fields(j).Name) = UCase(contr.Name) Then
> contr = rdNinvm.Fields(j)
> Exit For
> End If
> Next
> End If
> Next
>.....
>end select
>
>
>erline:
> MsgBox " Error occured " & Err.Description & " " & Err.Number & " " & Err.Source
> End
>end sub
>>>>>>>>>>>>>>>>>
>so after that i get the message box displayed. I hope the code is clear enough.
>Thank you very much
>Vlad

You miss only a simple thing.

You have to include the statement Exit Sub before the erline: label to tell to VB not to pass in the error handler.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform