I need to clean up approx modules in approx 400+ MS Access (2002 and 2007) databases. To me Perl solution appears the most efficient. However, I have not yet found a code that would allow me to e.g list Modules and Class Modules in an Access DB. In VBA, there is a collection Modules, through which you can access individual objects, but how does one get to that collection in Perl? I tried opening the DB using ADO or OLE or ODBC and cannot get to Modules.

Ideally, I'd like to do the following

  1. for each of the dbs, access the list of modules
  2. check each module if it needs processing (adding lines of code if certain conditions are met)
  3. save my changes

What I do not know is how to access the modules and if I can process them in place or if I need to export the module into text, modify it, and import it back into Access.

Any help would be greatly appreciated.

In reply to How to List MS Access 2007 Modules with Perl by Mundi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.