I have this error message format I use for my error handling in all
modules, both in vba code inside of a form and vba code that is outside
of forms:
MsgBox Err.Number & "-" & Err.Description, vbOKOnly, cstPgmName & "-" &
cstError
(where the "cst*" fields are constants referencing the program name and
Error title)
When I use the above line, I would like to also include in the titlebar
of the message the current vba module name where the message came from
and/or the current control being used.
Is there a way to do this?
Thanks.