Whether or not records are locked indefinitely is not really my point.
They need not be locked for more than a few milliseconds at most, using
unbound controls.
With No Locks specified on a bound form, the record is locked for no longer
than it takes to actually perform the update.
In most situations, in a multiuser environment, I would prefer to use an
unbound form for editing records rather than allowing the user to edit the
record directly using bound controls. A user might begin editing a
control, then get up and go to lunch, leaving the record locked. I don't
know how long the record remains locked in this case, but using unbound
controls it is not locked at all.
No, you simply don't understand. When a bound form's RecordLocks property
is left at the default setting of No Locks, a record is *not* locked while
the user is editing it. It is only locked for the duration of the actual
update. When you update a record, it *must* be locked for the duration of
the update. Whether the update is initiated by a bound form, or by you
submitting an UPDATE query or updating a recordset, it's exactly the same:
the record *must* be locked for the (very brief) duration of the update.
But, and I stress again, unless you have changed the RecordLocks property to
Edited Record or All Records, the record is *not* locked while the user is
editing it.
I am suspicious of this statement. I think there may be an issue of degree
here.
Absolutely no issue of degree or anything else: unless you specify that you
want pessimistic locking (i.e. Edited Record or All Records) there is *no*
lock on a record *except* for the very brief duration of the actual update
of the database.
I'm a crazy guy. Maybe you are right. I can only say that I have noticed
fairly dramatic performance improvements in a multiuser environment when I
(mostly) switched to unbound forms for editing. I am sure you will say the
performance benefits occurs because I was doing something wrong with the
bound forms. Maybe so.
Exactly so. But, whatever reason anyone might feel they have for using
unbound forms, what is crazy is persisting with using Access in such a
circumstance. The benefits of using Access all accrue from it's wonderful
capabilities with bound forms/reports. If you want unbound, there are much
better tools.
I feel a bit like Linus Pauling arguing with the medical community about
the benefits of vitamin C based mostly on personal and anecdotal evidence.
All manner of facts were thrown in his face, to which he had no good
response.
If you have blind faith that you are right then there is no point in
discussing it.
I still urge the original poster to try using unbound forms (for editing
purposes) for himself. I think he will be very happy with the result.
But I will urge the OP to ignore you on the grounds that you are completely
wrong. He might be happy in functional terms with the results of using
unbound forms but, if they understood what was going on, I'm sure his
paymasters would not be happy with the colossal waste of time/effort/money
invested in circumventing something which Access does perfectly well anyway.