|
-
Nov 3rd, 2000, 10:10 AM
#1
I'm using an Access 2000 (ADP) project, and I'm trying to create a global error handler without having to to do the following in each Sub and Function:
On Error GoTo Error_Handler_1
'Code here
:Exit_1
exit sub
:Error_Handler_1
Call Handle_Error
Goto Exit_1
Public Sub Handle_Error()
msgbox "An error has just occured"
end Sub
Anybody know how to do this?
-
Nov 3rd, 2000, 10:30 AM
#2
_______
<?>
If memory serves me here, the main sub's errorhandler stays in effect for all subs called from the main sub.
If you write your app as subs called from the main then you only need one error handler.
I'm sure lots of people will correct me if I have not understood the concept and this is not the case.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Nov 3rd, 2000, 10:45 AM
#3
-
Nov 3rd, 2000, 11:03 AM
#4
_______
<?>
k4plus:
Quite agree with that, I was just stating how it would work if my memory served me correctly, and I wasn't even sure of that till I tested it afterward.
The level of complexity (depending on what you are doing with the application), could be simple or so severe it isn't worth the time to even think about it.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Nov 3rd, 2000, 11:11 AM
#5
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
|