Raise error for the form's error event

  • Thread starter Thread starter Fred Boer
  • Start date Start date
F

Fred Boer

Hello!

I know how to use err. raise to raise an error in a procedure. I am now
working with some errorhandling in the form's error event. Putting an
appropriate err.raise statement in one of the form's other events doesn't
seem to fire my form event errorhandling. How can I test the form's error
event errorhandling code?

Thanks!
Fred Boer
 
Hi,
I'm not sure I understand what you are trying to do, but you can invoke the Form_Error event like this:
Call Form_Error(2272, acDataErrContinue)
 
Dear Dan:

That was *exactly* what I wanted! Thank you!

Fred Boer

Dan Artuso said:
Hi,
I'm not sure I understand what you are trying to do, but you can invoke
the Form_Error event like this:
 
Back
Top