| re: Run Compact & Repair/Import Externally
Thanks again for the reply Chuck.
The example I gave (DB1, DB2, etc.) is just an example. I have a
number of apps (.MDBs) that are
used by my company. The data is stored in tables on SQL Server. My
..MDBs contain the forms,
reports, queries, macros and modules and they link to the SQL Server
tables.
Every time that a developer makes enhancements to an app they must go
through a procedure to make
sure the app is clean and is as small as possible. First, the
developer will open CleanDatabase.MDB. This database contains one
common module and one common macro. Then they import every object
(except for the common module and macro) into CleanDatabase.MDB from
the app they just changed.
Then the developer relinks all the tables, Compacts and Repairs the DB
and runs the common macro to lock it down. The CleanDatabase.MDB is
renamed to the name of the app that was enhanced and then it is pushed
out into production.
I would like to do all that programmatically rather than have it done
manually. |