Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Run macros in 16 other dbs from 1

0 views
Skip to first unread message

RWD715

unread,
Sep 29, 2008, 10:54:01 AM9/29/08
to
I have 16 Access dbs and want to run their macros from a "central" db. Each
db has a "RunAll" macro that runs all of the macros in the individual dbs. I
think that I did this, or had it done for me, in 00 or 01 for another project.

Steve Schapel

unread,
Sep 30, 2008, 8:31:36 PM9/30/08
to
RWD,

You can use a RunApp action in your macro. The Command Line argument
will be something along these lines:
"C:\Program Files\...\Msaccess.exe" "C:\YourFolder\YourDB.mdb" /x
NameOfMacro

Having said that, your need to do so, and the 16 separate database
files, makes me very suspicious of a poor design of your system. If you
would like to explore this aspect, let us know some more information
about all these databases, what distinguishes them from each other, and
what is the relationship between them.

--
Steve Schapel, Microsoft Access MVP

RWD715

unread,
Oct 1, 2008, 7:53:02 AM10/1/08
to
Hello Steve,

I had hoped to hear from you and got the answer that I expected, having seen
it in your response to a similar question. I’m not VBA literate, but if
that’s the only choice that I have…

As for the design, I have a weekly report to produce covering 22 different
and dissimilar topics from a wide variety of data sources that is delivered
in an Excel workbook that has 22 worksheets linked to tables created in the
dbs. While I suppose it would be possible to create a single db to process
all of the data, it would be very large and cumbersome (close to 900
queries). I chose to segregate the different data streams into separate dbs
for ease of development and trouble shooting.

Thanks for the response.
Bob

Steve Schapel

unread,
Oct 1, 2008, 12:15:22 PM10/1/08
to
Bob,

Where did I say anything about VBA? Yes VBA would be a good choice, but
my reply was a macro solution, using a RunApp action.

0 new messages