S
Smartin
Hopefully the question is self-explanatory.
I've seen very little on the topic, and what I have seen poo-poo's the
notion so an FAQ is in order...
Why? I have a database that uses a macro that executes about a dozen
queries. Several of these queries create tables that are used
downstream to create other tables.
The problem is the database exceeds the 2GB limit (this is A2003 BTW)
in mid-process. When execution breaks I export the temp tables to a
new MDB, link them in, compact, and resume where execution left off.
It's rather tedious as I have to do this several times, and each
export and compact is both time and resource consuming. Unfortunately
the path to my files changes every month (else I would hard code a
path to an external MDB in the make-table queries).
So... I just learned I can compact in code. Fantastic! I can automate
exporting and relinking tables, and running a compact. What I'd like
to do is break up the big control macro into smaller bits and set an
autoexec macro to resume execution at the appropriate control step
before each compact fires. Then I can set the whole thing in motion on
a second machine and come back two hours later to enjoy the finished
product. Seem reasonable?
FWIW I saw one idea to load a macro from a text file but I'm not clear
on how to do this in code.
I've seen very little on the topic, and what I have seen poo-poo's the
notion so an FAQ is in order...
Why? I have a database that uses a macro that executes about a dozen
queries. Several of these queries create tables that are used
downstream to create other tables.
The problem is the database exceeds the 2GB limit (this is A2003 BTW)
in mid-process. When execution breaks I export the temp tables to a
new MDB, link them in, compact, and resume where execution left off.
It's rather tedious as I have to do this several times, and each
export and compact is both time and resource consuming. Unfortunately
the path to my files changes every month (else I would hard code a
path to an external MDB in the make-table queries).
So... I just learned I can compact in code. Fantastic! I can automate
exporting and relinking tables, and running a compact. What I'd like
to do is break up the big control macro into smaller bits and set an
autoexec macro to resume execution at the appropriate control step
before each compact fires. Then I can set the whole thing in motion on
a second machine and come back two hours later to enjoy the finished
product. Seem reasonable?
FWIW I saw one idea to load a macro from a text file but I'm not clear
on how to do this in code.