try something like:
Function F_VAL_MyScreen(MyForm As Form) As Boolean
On Error GoTo F_VAL_MyScreen_Err:
F_VAL_MyScreen = False
blah, blah, blah
F_VAL_MyScreen = True
F_VAL_MyScreen_EXIT:
Exit Function
F_VAL_MyScreen_Err:
If Err.Number <> 0 Then
Call F_WL("E", -1, Err, MyForm.Name, "F_VAL_MyScreen", "", "", "",
"", Err.Number & " - " & Err.Description)
Resume F_VAL_MyScreen_EXIT:
Else
GoTo F_VAL_MyScreen_EXIT:
End If
End Function
John Bickmore
www.BicycleCam.com www.Feed-Zone.com
"deko" <dj****@hotmail.com> wrote in message
news:lk******************@newssvr27.news.prodigy.c om...
Is there a shorthand way to Exit Sub On Error?
This does not seem to work:
On Error Exit Sub
And I don't want to use: On Error GoTo 0
Must I use: GoTo Exit_Here?