Cassandra,
There is something "wrong" within your database. When
Access does a Compact/Repair it opens a new database
(db1.mdb) and one-by-one it copies the items in your
database to the new one. When it finishes, it deletes
your current database and renames the db1.mdb to
your database name.
In your case, in processing an item: a form, query, table, or module it comes accross something it doesn't understand.
It will, sometimes, include that object in the new database.
The bottom line is that Access is "happy" with your "new"
database. It is very close, or exactly like your original
database.
Some people, just accept this and go on with life. But if
you want to, there are some things that you can do. First,
you can compile your entire DB and when successful retry
the Compact/Repair. If is still not OK, you can make a new
blank database, import all of the elements from your
original database. Then you should be OK.
There are times when a form goes "brain dead" and has
to be rewritten. These just illustrate the importance of
backing up your DBs often and even copying things like
code out to external documents for safekeeping.
There is no "easy" way to pinpoint what is wrong with
your DB, but in investigating its parts, you will learn
quite a bit about it.
Good Luck,
AnotherWayne