I have a multi-user database. Access uses some kind of locking-exclusion
method for having multiple copies of the same database open at once. My
question is, what causes these "copies" named db1 2, 3 ,4 ... to pop up?
closing it improperly? and, are they safe to delete?
You've got a problem!
I strongly suspect that you have the database set to "Compact on Close". This
is a way to recover lost space in the database - garbage collection, so to
speak. The way Access does this is to copy the database to db1.mdb (or db2 if
that already exists, and so on); if it succeeds it will rename the new copy to
the original name of the database and delete the old copy.
For some reason your compaction is not succeeding. Check your database - or
open the most recent of the dbX databases - and see if there is a new
"CompactErrors" table. I would strongly suggest using Tools... Options to turn
OFF Compact on Close!
For a multiuser system, I would also recommend that you IMMEDIATELY split the
database using Tools... Database Utilities... Database Splitter Wizard. Each
user should have their own copy of the "frontend", containing the forms,
reports, queries, and code; and all should share (but not open) the "backend"
containing the tables.
See
http://www.granite.ab.ca/access/splitapp.htm for a discussion.