[AccessD] Massive module edits

jwcolby jwcolby at colbyconsulting.com
Tue Jan 15 14:26:36 CST 2008


Guys,

I use my error handler insertion wizard to insert error handlers in all of
my modules.  It will insert error handlers in every module, in every form
etc.  Unfortunately it was rewritten in VB6 and I am incapable of modifying
the source.  I need to change:

        MsgBox Err.Description, , "Error in Sub tfrmClaim.Form_Open"

to 

        LogErr Err.Number, Err.Description, Erl, "tfrmClaim", "Form_Open"

I have written an error logger to log the errors and pop up a message box
for all unhandled errors.  Unfortunately the edit of all the functions in
all of the modules is a HUGE undertaking.  Does anyone have code for the VBE
that will search for and replace strings?  If I can get a good start without
having to "do it from scratch" I can take it from there.  I understand the
VBE object model and could if necessary write this but I just thought I'd
ask if someone out there has a reasonable "beginning".

Additionally if anyone wants to volunteer to modify the Error handler
insertion wizard, please contact me offline.  You will secure you place in
infamy... uh... history by taking on this project.

Thanks,

John W. Colby
Colby Consulting
www.ColbyConsulting.com 




More information about the AccessD mailing list