Records locking

J

Jake F

I have an .mde file that is being used by multiple people. 135 within a 4
hour period. It's been locking up intermittently on them when they try to
edit the yes/no field in a form. Is there any other tips to fixing that
besides creating a new .mde file for them or could it be related to the back
end database?
 
G

golfinray

Under tools\options\advanced set your record locking to edited record. Make
sure that the BE file allows read\write\edit and delete rights for all users
AND the folder it resides in.
 
J

Jake F

My form and two subforms were listed under no locks, is that a more open
option than edited record or will edited record help with the record locking
issue? I haven't checked my tables yet because there are still users in
there. Everything is setup to allow all users and then within the database
they have a login form. That part isn't secure but fits the needs.
 
G

golfinray

In Access, no locks does not mean no locks. Set it to edited record. Then
only the record that a user is actually editing will be locked and all others
will be available.
 
P

Paul Shapiro

"No Locks" does actually mean no locks. The problem with that option is that
if the edited record has changed in any way since the current user last read
the data, that user's update will be rejected. But it should not cause any
lockups. That approach is also called "optimistic concurrency", as in "let's
hope there aren't any conflicts and then the users won't be presented with
an ugly message that their changes cannot be saved". Setting the form lock
property to edited record will actually lock the record when a user makes
the first change to that record. No other user will be able to edit that
record until the first user either saves their changes or cancels the edit.
Depending on the application's data access patterns, setting the lock
property to edited record is probably a better choice for that many users.

When you say 135 users in 4 hours, how many of those users have the
application open simulataneously? Access has a firm upper limit of 255
concurrent users, but if any code in the application, or any other
application, opens additional database connections, you could be reaching
those limits. I've never used an Access backend for more than about 50
simultaneous users, and I don't remember seeing people report more than 100
simultaneous users. The upper limits are more likely to be successful if
most of the users are just reading data, not writing. Any kind of network
issue for any connected user can lockup the Access database, perhaps leading
to the kind of symptom you're seeing. Are any of the users connecting over a
WAN or a wireless connection? Either of those conditions makes lockups so
much more likely that most people recommend against using either with an
Access backend. Is the backend database on a server? I think all recent
client OS's are limited to 10 simultaneous network connections, which could
also produce the symptoms you're seeing.
 
T

Tom Wickerath

"Open databases using record-level locking" is a request, not a demand. You
can read more about this on Michka's (Michael Kaplan) blog:

http://blogs.msdn.com/michkap/archive/2005/10/19/482694.aspx

To ensure that you open a database with record-level locking, see the
following KB article:

PRB: Jet 4.0 Row-Level Locking Is Not Available with DAO 3.60
http://support.microsoft.com/?id=306435


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________
 
T

Tom Wickerath

Why is your .mde file being used by more than one person? The database should
be split, and each user should be running their own copy of the .mdb
Front-end file (or the compiled .mde form). There is really no point in
converting the BE (Back-end) file to the .mde format. So, is your application
split, and is each user running their own copy of the .mde file?

Implementing a Successful Multiuser Access/JET Application
http://www.accessmvp.com/TWickerath/articles/multiuser.htm

I'm also interested to learn how many simultaneous users you have.


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top