I'm not sure that what you are trying to do is simple in a mulit-user
environment like Access.
You have a temp table with the same structure as your real table.
Let's say you succeed in copying all records from the real table to your
temp table whenever you open your form, like this:
Private Sub Form_Open(Cancel As Integer)
Dim db As DAO.Database
Dim strSql As String
Set db = CurrentDb()
strSql = "DELETE FROM MyTempTable;"
db.Execute strSql, dbFailOnError
strSql = "INSERT INTO MyTempTable SELECT * FROM MyRealTable;"
db.Execute strSql, dbFailOnError
Set db = Nothing
End Sub
(Note that this needs error handling that cancels the opening of the form if
this operation does not succeed completely.)
Now the user fires away, and you need to figure out how to merge the records
back to the real table afterwards, and handle any conflict with other users
who edited them at the same time.
Consider these cases:
a) User adds new records.
You have to identify which are the new records, and execute an Append query
to add them to the real table. This is a problem, because if another user
deleted a record (which is still in this user's temp table), you are about
to add it back. You also have a problem with ensuring that any AutoNumber
fields give different values to different users who are adding records
concurrently.
b) User deletes records.
You have to identify which records are in the original table, but not in the
temp table, and delete them. Here you have a major problem if another user
has added any records to the original table since this user copied hers to
the temp table, because you are about to kill the other users' new records.
c) User edits records.
You now have the problem of identifying which field(s) of which record(s)
were changed by this user, and which field(s) of the same record(s) were
modified by other user(s) concurrently (i.e. since you copied them from the
original table.) You are going to need additional hidden fields to track who
changed what when, and will need to develop sync. routines that give users
the responsibility to make decisions about whose changes are kept and whose
are overwritten.
In practice, this is not going to work.
You could examine replication as an option, but I could not recommend it. MS
has removed replication from A2007, so you are probably heading down a
dead-end path if you go that direction.