G
Glenn
I have a problem with record locking in a multi-user database (access
2000, DAO)
the (simplified) situation is this:
all users can add and edit their _own_ records in a central table.
the table is stored in the backend.
The table contains a primary autonumber field.
data entry/edit is done using a bound form with a currentuser
restriction on the data, (where user = [Forms]![frm]!user])
Once in a while, one user succeeds in locking out the users from the
table.
I don't yet fully understand the exact circumstances under which this
happens, but this is my guess.
As long as the users are creating new records, there seems to be no
problem.
I think the problem occurs if a user goes back to an existing record and
edits it. presumably the records around it get locked and cause
problems.
once, a user had started a edit on a record and left it in that state
for half an hour, during which every other user got the locked message.
--------
I need a solution so that every user can freely add/access/modify his
own records.
I read about (custom) record locking, but can not see how I can modify
it so that the error would stop. The record-level locking option is set
on the database.
A possible solution offered in this group, is to use a local temporary
table in the frontend which the user could edit - he'd be the only one.
Once the edits finished, the records are transferred to the backend
table.
this seems to be a rather heavy approach, plus the same problems could
occur when two people save at the same time
suggestions are welcome.
thanks
glenn
2000, DAO)
the (simplified) situation is this:
all users can add and edit their _own_ records in a central table.
the table is stored in the backend.
The table contains a primary autonumber field.
data entry/edit is done using a bound form with a currentuser
restriction on the data, (where user = [Forms]![frm]!user])
Once in a while, one user succeeds in locking out the users from the
table.
I don't yet fully understand the exact circumstances under which this
happens, but this is my guess.
As long as the users are creating new records, there seems to be no
problem.
I think the problem occurs if a user goes back to an existing record and
edits it. presumably the records around it get locked and cause
problems.
once, a user had started a edit on a record and left it in that state
for half an hour, during which every other user got the locked message.
--------
I need a solution so that every user can freely add/access/modify his
own records.
I read about (custom) record locking, but can not see how I can modify
it so that the error would stop. The record-level locking option is set
on the database.
A possible solution offered in this group, is to use a local temporary
table in the frontend which the user could edit - he'd be the only one.
Once the edits finished, the records are transferred to the backend
table.
this seems to be a rather heavy approach, plus the same problems could
occur when two people save at the same time
suggestions are welcome.
thanks
glenn