[AccessD] Massive module edits

Jim Dettman jimdettman at verizon.net
Tue Jan 15 20:17:43 CST 2008


John,

  I e-mailed earlier, but my e-mail has not appeared on the list, so I'm
giving it another try.

  Feel free to send it along.

Jim. 

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Tuesday, January 15, 2008 3:27 PM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Massive module edits

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 

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list