I just discovered that you had also posted your question to
comp.databases.ms-access (note the plural databases), and someone else
included an answer at that newsgroup. See
http://home.clara.net/tkwickenden/codeex/139.htm.
From: Pink Panther
Newsgroups: comp.databases.ms-access
Sent: Saturday, June 28, 2003 8:43 PM
Subject: Re: how to create a module in access 2002 with vb
Fred Nobody <epaulsen7 (AT) attbi (DOT) com> wrote
Quote:
Hi
I'm trying to put together a set of tools for access 2002 and i would
like to create a module programmatically using vba but can't find any
documentation that leads me to believe this is possible. Is it?
TIA
epaulsen7 (AT) attbi (DOT) com |
docmd.RunCommand acCmdNewObjectModule
DoCmd.RunCommand acCmdNewObjectClassModule
will do the trick.
Check out http://home.clara.net/tkwickenden/
'conquering access RunCommand constants for some sample code.