473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Access Multi User – Record Locking

Hi.

In Access 2010 it is possible to set the default Record Locking as follow:
· File Menu
· Click Options
· Click Client Settings in the left side Options Menu Pane
· Scroll through the Client Settings until you find the AdvancedSettings
Set advanced settings as:
1. Default Open Mode – Shared
2. Default record locking – Edited Record

I would like to know:
* If when a user tries to edit a locked record the message "Write Conflict" is displayed in both case "Edited Record" and "No Locks"
* What happen exactly in each case (Error message, Program crash, ...).

I would like to receive real answers as:
* Yes or No, to the first,
* A description of what really happen, to the second.

Please anwer with concrete examples (I asked in other forums and answers where theories).

Thanks very much.
Attached Images
File Type: jpg WriteConflict.jpg (7.6 KB, 114 views)
Jun 11 '16 #1

✓ answered by nico5038

Access will issue the posted message, as there will always be a 'winner' that gets no message and a 'loser' that gets the message and is able to overwrite te change of the 'winner'. Could be a split second or CPU cycle, but one will be first.
Thus my additional fields as the winner could view the record later and wonder where his change has gone...

Nico

5 1229
nico5038
3,080 Expert 2GB
Hi smarta46,

I guess your question can be answered from google links like: http://www.databasedev.co.uk/multi-user-application-record-locking.html
However, more important is wht you want to achieve.
Personally I just use the Shared option with nolocks. In general the chances that multiple users are updating the same record at the same moment will be very slim. Just imagine there's a 1 minute difference between these two users, then no one will notice this update. So I just add two fields: [LastUpdatedOn] and [LastUpdateBy] to an important table. This allows a user to see when someone else did change the record and ask this person why (s)he edited the record, when this would contradict the change (s)he made.

Idea?

Nic;o)
Jun 12 '16 #2
Hi Nico.
Thanks for your reply.
Actually I am using Shared with Nolocka too.
I would like to know what happen if two users update the same record at the same momento (I know it wolud be a very Slim situation - It never happen to me):
* Will the program crash?
* Will I have a message diplayed letting me to choose what to do?
* ...?
Jun 12 '16 #3
nico5038
3,080 Expert 2GB
Access will issue the posted message, as there will always be a 'winner' that gets no message and a 'loser' that gets the message and is able to overwrite te change of the 'winner'. Could be a split second or CPU cycle, but one will be first.
Thus my additional fields as the winner could view the record later and wonder where his change has gone...

Nico
Jun 12 '16 #4
Thanks Nico.
* After the "loser" gets the message and made his selection, the program will continue normally?
* Is it possible to choose automatically the answer (ie If "WriteConflict" Then "SaveRecord" End If)?
Jun 12 '16 #5
nico5038
3,080 Expert 2GB
Answer for * 1: Yes Access will continue as expected.
For * 2: Problem will be what to choose, update or not.
Personally I would leave this to the user as I guess (s)he knows best what value is the right one.

One way to control this is to use the BeforeUpdate event. First check or the form has been changed. For this you can use the "IF Me.Dirty=True" statement to check for changes and (When "dirty") then re-read the record and test the "OldValue" property of the form for fields being different as those of the re-read record. Next you can decide to update the record or skip the update.
When using the LastUpdatedOn/By fields you can message/show the user what has been changed since (s)he started changing the form.

Getting the idea ?

Nic;o)
Jun 12 '16 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Fardude | last post by:
ACCESS 97, Pessimistic Record Locking!??? Does Access 97 allow record level Pessimistic locking? In other words, when user A is editing a record (has it locked) and User B tries to edit it...
2
by: RipTide | last post by:
Background: Using an unsupported/abandoned multi-user multi-database program that uses Access 97 and Jet 3.5. Program itself appears to have been built with PowerBuilder 6.5. Databases reside on...
2
by: Scott Bryce | last post by:
I am creating a CGI application in Perl that uses an Access database. It will be hosted on an NT server. I have used flat file DBMs (tied hashes) on UNIX servers, but I am not familiar with how...
2
by: Patrick Fisher | last post by:
Hi To display a message when a user attempts to edit a record in a multi-user environment where a forms Record Locking is set to Edited Record and another user is editing a record, is difficult...
5
by: bobwansink | last post by:
Hi, I'm relatively new to programming and I would like to create a C++ multi user program. It's for a project for school. This means I will have to write a paper about the theory too. Does anyone...
45
by: Luvin lunch | last post by:
Hi, I'm new to Access and have been asked to develop a simple Access system to replace one that already exists. There are five users of the current Access system and each of the users works off...
7
by: irfanali | last post by:
Hallo All, I m trying to create a Multi User Data Program on Access, where my team members would input data on a daily basis. Well the Problems start now : - How do i create a Multi-user...
2
by: jwalsh604 | last post by:
I have an Access db application that is intended to present the user with the next available record to make an outbound phone call on. Originally, I had set it up as a "split" database but, due to...
2
dlite922
by: dlite922 | last post by:
I have an application written in PHP, and i'm trying to not to convert it to Java (for its locking functionality), and possibly do it somehow with PHP. maybe PHP and Java. My needs are that...
1
by: karsagarwal | last post by:
I need the MS Access 2003 database to have for: Users: read only permission Admin: Write/Modify permission Can you please guide me so that I get do the appropriate setting for the database. ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.