
Locking records in Access?
Quote:
>>Access 2.0 doesn't allow record locking - just 2k page locking. To lock
> an
>>individual record, you have to be a little creative. I use a true/false
> field
>>for that purpose, marking it true when a record is open of edit - and
> false
>>again when closed.
>How does this get you round the problem of page locking ? Presumably
>you still get a page lock when you update you indicator field to True
>/ False ?
True but, I work under the concept that if I am not actually writting to the
db at the time, I don't need to have it open. Yes, I may "lock" the record
as I have indicated above but, in reality, I don't have it open - I'm just
preventing others from modifying it until I get finished. When I'm throught
doing what I need to do with the record's data, I open the db/table, write
the record back, clear my "locked" flag, and close everything again.
As you can see, I don't believe in keeping a database/table/**set open any
longer than I absolutely have to. This avoids a lot of write conflict
problems (due to the "page" locking in Access), and greatly reduces the
chances of database corruption due to a position dying with the database open
in write mode. Any speed hit that is taken working this way is minimal. I
don't find the loss of "bound" controls in a multi-user environment to be any
great loss at all.
Frank....