J
Jesse Aviles
I'm having trouble with the Err.raise. I created a class (I'm using Access
XP Developer's Handbook and VBA Developer's Handbook as guides) and on the
error handling procedure placed the following line of text:
Err.Raise Err.Number, Err.Source, Err.Description
The way I read the books and VBA online help, I was expecting that when an
error ocurred, the error handler from the calling code would get the
information provided by Err.Raise. Instead I see the regular VBA Error box
(the one with the debug and end buttons) with the following message:
Error 438: Object doesn't support this property or method.
If I click on debug, VBA points me to the calling code error handler. The
code, generally, in my error handler is as follows:
MsgBox "Error " & Err.Num & vbNewLine & Err.Description & vbNewLine &
"In cmdDeleteRecord_Click."
Resume ExitHandler
Can anyone tell me what I'm doing wrong or understanding wrong?
Thanks,
Jesse Aviles
j a v i l e s @ v e l o x i u s . c o m
XP Developer's Handbook and VBA Developer's Handbook as guides) and on the
error handling procedure placed the following line of text:
Err.Raise Err.Number, Err.Source, Err.Description
The way I read the books and VBA online help, I was expecting that when an
error ocurred, the error handler from the calling code would get the
information provided by Err.Raise. Instead I see the regular VBA Error box
(the one with the debug and end buttons) with the following message:
Error 438: Object doesn't support this property or method.
If I click on debug, VBA points me to the calling code error handler. The
code, generally, in my error handler is as follows:
MsgBox "Error " & Err.Num & vbNewLine & Err.Description & vbNewLine &
"In cmdDeleteRecord_Click."
Resume ExitHandler
Can anyone tell me what I'm doing wrong or understanding wrong?
Thanks,
Jesse Aviles
j a v i l e s @ v e l o x i u s . c o m