dbTalk Databases Forums  

Use Error handler for form_error() code

comp.databases.ms-access comp.databases.ms-access


Discuss Use Error handler for form_error() code in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
P
 
Posts: n/a

Default Use Error handler for form_error() code - 08-04-2003 , 02:57 PM






Hi,
I use a generic error handler for all procedure. I would like to use it when
an error occur in the form. Currently, when an error occur in the form, the
form_error() executes. I would like it so that when an error occurs in the
form, the error handler in form_error() handles it so that all errors are
managed by the generic error handler. Any suggestions? Thank you.



Reply With Quote
  #2  
Old   
Tom van Stiphout
 
Posts: n/a

Default Re: Use Error handler for form_error() code - 08-04-2003 , 11:05 PM






On Mon, 04 Aug 2003 19:57:31 GMT, "P" <plavallee (AT) rcn (DOT) com> wrote:

Eh, put your generic error handler in form_error?
-Tom.

Quote:
Hi,
I use a generic error handler for all procedure. I would like to use it when
an error occur in the form. Currently, when an error occur in the form, the
form_error() executes. I would like it so that when an error occurs in the
form, the error handler in form_error() handles it so that all errors are
managed by the generic error handler. Any suggestions? Thank you.



Reply With Quote
  #3  
Old   
P
 
Posts: n/a

Default Re: Use Error handler for form_error() code - 08-05-2003 , 02:28 PM



Thank you Tom for your response. I found how to do what I wanted to
accomplish:

Private Sub Form_Error(intDataErr As Integer, intResponse As Integer)

On Error GoTo GenericErrorHandler
....
VBA.Err.Raise CLng(intDataErr)
....
GenericErrorHandler:
....

"Tom van Stiphout" <tom7744 (AT) no (DOT) spam.cox.net> wrote

Quote:
On Mon, 04 Aug 2003 19:57:31 GMT, "P" <plavallee (AT) rcn (DOT) com> wrote:

Eh, put your generic error handler in form_error?
-Tom.

Hi,
I use a generic error handler for all procedure. I would like to use it
when
an error occur in the form. Currently, when an error occur in the form,
the
form_error() executes. I would like it so that when an error occurs in
the
form, the error handler in form_error() handles it so that all errors are
managed by the generic error handler. Any suggestions? Thank you.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.