Hey, Rick. Just a followup question here.
I the past, I have used import, but having to remember to recreate my
Startup options got the best of me, so I eventually just created a form that
has a (password-protected) button that runs a series of DoCmd.RunSQL "DELETE
* FROM WhateverTable" statements in the correct order to avoid referential
integrity violiations. Then I run a compact/repair to reset AutoNumber fields
back to 1, decompile, recompile, and run a final compact/repair.
Two questions:
1. Is there a down side to the above approach?
2. Where are the Startup option stored? If they are DB properties, then I
could just query the Properties collection to update the new DB to match the
original.
Rick Brandt said:
TedMi said:
By "import", Rick means to copy each table out of the existinhg .mdb
and paste it into a new blank .mdb file. Do not use File > Get
External Data > Import.
However, if you do this, you will need to re-establish your
relationships and referential integrity in the new database. An
easier way is to run this query on every table in your test db:
DELETE FROM [NameOfTable]
You could automate this with VB code if there are many many tables.
Make a backup of the test db first!
No, I meant File - Get External Data -Import from a new blank file. If you do
this you don't lose your relationships if you take the option to include them.
Why would you think that one should not use the import option?