JWColby
jwcolby at colbyconsulting.com
Sat Mar 10 10:19:01 CST 2007
Why don't you just search for that phrase in the find dialog in the editor? That would not limit you to just the form modules but it would allow you to see each instance of that phrase. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Saturday, March 10, 2007 11:09 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Looking at lines of code in code Dear List: I have a need to programmatically look at every line of code behind all forms looking for the string "TranslateMsgbox". I'm floundering around here a bit. I know how to cycle through the forms collection. But once I open the form in design view and Set frm = Forms(strFormName) I can't figure out how to loop through every line of code behind the form. Any suggestions appreciated. MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com